Class LayerSurrogate

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Layer<T, P> getOrigin()
      final Function1<List<Number>, P> getPosMapping()
      final String getValue(PositionInput p) Returns the value of the layer at the given position.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LayerSurrogate

        LayerSurrogate(Layer<T, P> origin, Function1<List<Number>, P> posMapping)
        Parameters:
        posMapping - the position mapping function from a generic set of coordinates represented as a list of numbers, to an instance of Alchemist Position object
    • Method Detail

      • getValue

         final String getValue(PositionInput p)

        Returns the value of the layer at the given position.

        Parameters:
        p - the position
        Returns:

        the value of the layer at the given position, encoded as a Json string (see encodeConcentrationContentToString for details)