NodeToPosMap

data class NodeToPosMap(val originMap: Map<Int, PositionSurrogate>, val size: Int = originMap.size) : GraphQLMap<Int, PositionSurrogate>

A GraphQL compliant representation of a Map storing it.unibo.alchemist.model.Nodes' ids and their position, represented as a PositionSurrogate.

Constructors

Link copied to clipboard
constructor(originMap: Map<Int, PositionSurrogate>, size: Int = originMap.size)

Properties

Link copied to clipboard
open override val originMap: Map<Int, PositionSurrogate>
Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard
Link copied to clipboard
operator fun get(key: Int): PositionSurrogate?

Custom indexing with the key of the wrapped Map.