Package org.onosproject.segmentrouting
Class SRLinkWeigher
- java.lang.Object
-
- org.onlab.graph.DefaultEdgeWeigher<org.onosproject.net.topology.TopologyVertex,org.onosproject.net.topology.TopologyEdge>
-
- org.onosproject.segmentrouting.SRLinkWeigher
-
- All Implemented Interfaces:
org.onlab.graph.EdgeWeigher<org.onosproject.net.topology.TopologyVertex,org.onosproject.net.topology.TopologyEdge>,org.onosproject.net.topology.LinkWeigher
public final class SRLinkWeigher extends org.onlab.graph.DefaultEdgeWeigher<org.onosproject.net.topology.TopologyVertex,org.onosproject.net.topology.TopologyEdge> implements org.onosproject.net.topology.LinkWeigherLink weigher for multicast related path computations.
-
-
Field Summary
Fields Modifier and Type Field Description static org.onlab.graph.ScalarWeightLINK_TO_AVOID_WEIGHT
-
Constructor Summary
Constructors Constructor Description SRLinkWeigher(SegmentRoutingManager srManager, org.onosproject.net.DeviceId srcPath, Set<org.onosproject.net.Link> linksToEnforce)Creates a SRLinkWeigher object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.onlab.graph.Weightweight(org.onosproject.net.topology.TopologyEdge edge)-
Methods inherited from class org.onlab.graph.DefaultEdgeWeigher
getInitialWeight, getNonViableWeight
-
-
-
-
Constructor Detail
-
SRLinkWeigher
public SRLinkWeigher(SegmentRoutingManager srManager, org.onosproject.net.DeviceId srcPath, Set<org.onosproject.net.Link> linksToEnforce)
Creates a SRLinkWeigher object.- Parameters:
srManager- SegmentRoutingManager objectsrcPath- the source of the pathslinksToEnforce- links to be enforced by the path computation
-
-
Method Detail
-
weight
public org.onlab.graph.Weight weight(org.onosproject.net.topology.TopologyEdge edge)
- Specified by:
weightin interfaceorg.onlab.graph.EdgeWeigher<org.onosproject.net.topology.TopologyVertex,org.onosproject.net.topology.TopologyEdge>- Overrides:
weightin classorg.onlab.graph.DefaultEdgeWeigher<org.onosproject.net.topology.TopologyVertex,org.onosproject.net.topology.TopologyEdge>
-
-