Class NodeToPosMap
-
- All Implemented Interfaces:
public final class NodeToPosMap extends GraphQLMap<Int, PositionSurrogate>
A GraphQL compliant representation of a Map storing it.unibo.alchemist.model.Nodes' ids and their position, represented as a PositionSurrogate.
-
-
Constructor Summary
Constructors Constructor Description NodeToPosMap(Map<Integer, PositionSurrogate> originMap, Integer size)
-
Method Summary
Modifier and Type Method Description Map<Integer, PositionSurrogate>
getOriginMap()
Integer
getSize()
final List<NodeToPosEntry>
entries()
-
-
Constructor Detail
-
NodeToPosMap
NodeToPosMap(Map<Integer, PositionSurrogate> originMap, Integer size)
- Parameters:
originMap
- the wrapped mapsize
- the size of the wrapped map
-
-
Method Detail
-
getOriginMap
Map<Integer, PositionSurrogate> getOriginMap()
-
entries
final List<NodeToPosEntry> entries()
- Returns:
the list of entries in this map.
-
-
-
-