protected class PceManager.TeConstraintBasedLinkWeight extends Object implements LinkWeight
| Constructor and Description |
|---|
TeConstraintBasedLinkWeight(List<Constraint> constraints)
Creates a new edge-weight function capable of evaluating links
on the basis of the specified constraints.
|
public TeConstraintBasedLinkWeight(List<Constraint> constraints)
constraints - path constraintspublic double weight(TopologyEdge edge)
weight in interface org.onlab.graph.EdgeWeight<TopologyVertex,TopologyEdge>