Class GraphLayoutManager.LayoutResult

java.lang.Object
com.portingdeadmods.researchd.client.screens.research.graph.GraphLayoutManager.LayoutResult
Enclosing class:
GraphLayoutManager

public static class GraphLayoutManager.LayoutResult extends Object
Result of layout computation. Consumed by the edge router.
  • Field Details

    • layers

      public final List<List<ResearchNode>> layers
      Ordered nodes per layer (index = layer number).
    • layerY

      public final int[] layerY
      Y position of each layer's nodes.
    • channelsPerZone

      public final int[] channelsPerZone
      Number 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[] zoneBaseY
      Y position of channel 0 in each routing zone. Channels go downward: channelY = zoneBaseY[i] + channelIndex * CHANNEL_PITCH.
    • edgeChannelAssignments

      public final Map<Long,Map<Integer,Integer>> 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