Class 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.LinkWeigher
    Link weigher for multicast related path computations.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.onlab.graph.ScalarWeight LINK_TO_AVOID_WEIGHT  
      • Fields inherited from class org.onlab.graph.DefaultEdgeWeigher

        DEFAULT_HOP_WEIGHT, DEFAULT_INITIAL_WEIGHT, HOP_WEIGHT_VALUE, NULL_WEIGHT_VALUE
    • Constructor Summary

      Constructors 
      Constructor Description
      SRLinkWeigher​(SegmentRoutingManager srManager, org.onosproject.net.DeviceId srcPath, Set<org.onosproject.net.Link> linksToEnforce)
      Creates a SRLinkWeigher object.
    • Field Detail

      • LINK_TO_AVOID_WEIGHT

        public static final org.onlab.graph.ScalarWeight LINK_TO_AVOID_WEIGHT
    • 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 object
        srcPath - the source of the paths
        linksToEnforce - 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:
        weight in interface org.onlab.graph.EdgeWeigher<org.onosproject.net.topology.TopologyVertex,​org.onosproject.net.topology.TopologyEdge>
        Overrides:
        weight in class org.onlab.graph.DefaultEdgeWeigher<org.onosproject.net.topology.TopologyVertex,​org.onosproject.net.topology.TopologyEdge>