Class HorizontalBusLane


  • public class HorizontalBusLane
    extends Object
    An horizontalBusLane contains a list of BusNodes that have to be displayed horizontally at the same height (same vPos). The startingIndex of the HorizontalBusLane is its horizontal position in the LBSCluster it belongs to. The horizontal position is the startingIndex in the cluster of the first LegBusSet that contains the first BusNode of the HorizontalBusLane. The length is the spanning of the HorizontalBusLane in the LBSCluster (note that a busNode can span over many LegBusSet in the cluster). Therefore startingIndex + length - 1 = the last position occupied by the HorizontalBusLane in the LBSCluster.
    Author:
    Benoit Jeanson
    • Method Detail

      • shift

        public void shift​(int i)
      • getSideNode

        public BusNode getSideNode​(Side side)
      • getStartingIndex

        public int getStartingIndex()
      • getEndingIndex

        public int getEndingIndex()
      • getBusNode

        public BusNode getBusNode​(int index)
      • setLbsCluster

        public void setLbsCluster​(LBSCluster lbsCluster)