Package com.powsybl.sld.layout
Class HorizontalBusLane
- java.lang.Object
-
- com.powsybl.sld.layout.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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BusNode
getBusNode(int index)
List<BusNode>
getBusNodes()
int
getEndingIndex()
BusNode
getSideNode(Side side)
int
getStartingIndex()
void
merge(HorizontalBusLane otherLane)
void
setLbsCluster(LBSCluster lbsCluster)
void
shift(int i)
String
toString()
-
-
-
Method Detail
-
shift
public void shift(int i)
-
merge
public void merge(HorizontalBusLane otherLane)
-
getStartingIndex
public int getStartingIndex()
-
getEndingIndex
public int getEndingIndex()
-
getBusNode
public BusNode getBusNode(int index)
-
setLbsCluster
public void setLbsCluster(LBSCluster lbsCluster)
-
-