toGraphQLLayerSurrogate

fun <T, P : Position<out P>> Layer<T, P>.toGraphQLLayerSurrogate(posMapping: (List<Number>) -> P): LayerSurrogate<T, P>(source)

Converts a it.unibo.alchemist.model.Layer to a LayerSurrogate.

Return

a LayerSurrogate for this it.unibo.alchemist.model.Layer

Parameters

posMapping

the position mapping function.