LayerSurrogate
data class LayerSurrogate<T, P : Position<out P>>(val origin: Layer<T, P>, val posMapping: (List<Number>) -> P) : GraphQLSurrogate<Layer<T, P>> (source)
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.
Parameters
T
the concentration type
P
the position
posMapping
the position mapping function from a generic set of coordinates represented as a list of numbers, to an instance of Alchemist Position object