Class GraphLayoutManager.LayoutResult
java.lang.Object
com.portingdeadmods.researchd.client.screens.research.graph.GraphLayoutManager.LayoutResult
- Enclosing class:
GraphLayoutManager
Result of layout computation. Consumed by the edge router.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int[]Number of routing channels between layer i and layer i+1.For each edge (parent→child), which channel it's assigned in each routing zone it passes through.final List<List<ResearchNode>> Ordered nodes per layer (index = layer number).final int[]Y position of each layer's nodes.final int[]Y position of channel 0 in each routing zone. -
Constructor Summary
ConstructorsConstructorDescriptionLayoutResult(List<List<ResearchNode>> layers, int[] layerY, int[] channelsPerZone, int[] zoneBaseY, Map<Long, Map<Integer, Integer>> edgeChannelAssignments) -
Method Summary
-
Field Details
-
layers
Ordered nodes per layer (index = layer number). -
layerY
public final int[] layerYY position of each layer's nodes. -
channelsPerZone
public final int[] channelsPerZoneNumber of routing channels between layer i and layer i+1. Index i corresponds to zone between layer i and i+1. -
zoneBaseY
public final int[] zoneBaseYY position of channel 0 in each routing zone. Channels go downward: channelY = zoneBaseY[i] + channelIndex * CHANNEL_PITCH. -
edgeChannelAssignments
For each edge (parent→child), which channel it's assigned in each routing zone it passes through. Key = edgeKey(parent, child), Value = map from zone index to channel index.
-
-
Constructor Details
-
LayoutResult
-