Class LayerSurrogate
-
- All Implemented Interfaces:
public final class LayerSurrogate<T extends Object, P extends Position<out P>> extends GraphQLSurrogate<Layer<T, P>>
A surrogate class for Layer. A position mapping function resolves the translation of a generic position (hopefully a it.unibo.alchemist.boundary.graphql.schema.model.surrogates.PositionSurrogate) object in a PositionSurrogate.
-
-
Method Summary
-
-
Method Detail
-
getPosMapping
final Function1<List<Number>, P> getPosMapping()
-
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)
-
-
-
-