|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.mit.ll.group43.surfaceoptimization.dp.factory.edge.EdgeValueStrategy
edu.mit.ll.group43.surfaceoptimization.dp.factory.edge.ZeroEdgeValueStrategy
public class ZeroEdgeValueStrategy
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.
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 |
---|
public ZeroEdgeValueStrategy(MinimumSeparationCalculator<? extends WeightClass> calc)
Method Detail |
---|
public void insertEdge(CPSNetworkNode a, CPSNetworkNode b)
insertEdge
in class EdgeValueStrategy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |