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

Constructors

Link copied to clipboard
constructor(origin: Layer<T, P>, posMapping: (List<Number>) -> P)

Properties

Link copied to clipboard
open override val origin: Layer<T, P>
Link copied to clipboard
val posMapping: (List<Number>) -> P

Functions

Link copied to clipboard

Returns the value of the layer at the given position.