edu.mit.ll.group43.surfaceoptimization.dp.factory.edge
Class ZeroEdgeValueStrategy

java.lang.Object
  extended by edu.mit.ll.group43.surfaceoptimization.dp.factory.edge.EdgeValueStrategy
      extended by edu.mit.ll.group43.surfaceoptimization.dp.factory.edge.ZeroEdgeValueStrategy

public class ZeroEdgeValueStrategy
extends EdgeValueStrategy

This strategy simply inserts edges between nodes with a value of zero. This is used for algorithms that need to calculate edge costs as they go and can't rely on static edge costs determined when the network is first constructed.

Author:
William Hawkins

Constructor Summary
ZeroEdgeValueStrategy(MinimumSeparationCalculator<? extends WeightClass> calc)
           
 
Method Summary
 void insertEdge(CPSNetworkNode a, CPSNetworkNode b)
          Inserts an edge of weight 0 between a and b since edge weights are computed as the network is solved using this strategy.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZeroEdgeValueStrategy

public ZeroEdgeValueStrategy(MinimumSeparationCalculator<? extends WeightClass> calc)
Method Detail

insertEdge

public void insertEdge(CPSNetworkNode a,
                       CPSNetworkNode b)
Inserts an edge of weight 0 between a and b since edge weights are computed as the network is solved using this strategy.

Specified by:
insertEdge in class EdgeValueStrategy