Class PositionByClustering

  • All Implemented Interfaces:
    PositionFinder

    public class PositionByClustering
    extends Object
    implements PositionFinder
    PositionByClustering finds adequate positions for the busBars with the following principles: All the connections to the BusBar of the leg of an ExternCell, or each leg of an InternCell shall be stackable (ie could be displayed with disconnectors to busbar vertically aligned). This implies that the busBars of a leg shall be spread in different vertical structuralPosition, (and in many case having the same horizontal structuralPosition). The first step consists in building LegBusSets that contains busBars that shall be vertically aligned (considering they have legs of cell that impose it). Then LBSClusters are initiated by building one LBSCluster per LegBusSet. The LBSClusters are then merged 2 by 2 starting by LBSclusters that have the strongest Link. Two strategies of strength assessment of the links between clusters are implemented:
    • if useLBSLinkOnly is true: the strength between LegBusSets is considered: this means that the strength of the link between two clusters is the one of the strongest link between two LegBusSets (one per cluster). This is a simple implementation that is limited as it it does not consider the difference between the side of a cluster: if two clusters A and B are to be merged, the result can either be A-B or B-A.
    • if useLBSLinkOnly is false: the strength between LBSClusterSide is considered. This is similar to what si done with LegBusSet but the assessment of the strength of the link considers both sides of the cluster. Therefore, with cluster A and B, there are 4 LBSClusterSide A-Right A-Left B-Right and B-Left. The links that are considered are (A-Right, B-Left), (A-Right, B-Right), (B-Right, B-Left), (B-Right, B-Right). When merging, alignment is required (meaning that clusters could be reversed to ensure the connection sides between the 2 clusters are respected : 1st cluster-Right is merged with 2nd cluster-left).
    Author:
    Benoit Jeanson