to Node Surrogate
fun <T, P : Position<out P>, TS : Any, PS : PositionSurrogate> Node<T>.toNodeSurrogate(environment: Environment<T, P>, toConcentrationSurrogate: (T) -> TS, toPositionSurrogate: (P) -> PS): NodeSurrogate<TS, PS>
A function that maps a it.unibo.alchemist.model.Node to its surrogate class it.unibo.alchemist.boundary.webui.common.model.surrogate.NodeSurrogate.
Return
the it.unibo.alchemist.boundary.webui.common.model.surrogate.NodeSurrogate mapped starting from the it.unibo.alchemist.model.Node.
Parameters
environment
the environment in which the node is. Used to collapse the position inside the node.
to Concentration Surrogate
the mapping function from
to Position Surrogate
the mapping function from
to