jopt.csp.spi.arcalgorithm.graph.arc.hyper
Class HyperSetUnionArc

java.lang.Object
  extended byjopt.csp.spi.arcalgorithm.graph.arc.AbstractArc
      extended byjopt.csp.spi.arcalgorithm.graph.arc.hyper.HyperArc
          extended byjopt.csp.spi.arcalgorithm.graph.arc.hyper.HyperSetArc
              extended byjopt.csp.spi.arcalgorithm.graph.arc.hyper.HyperSetUnionArc
All Implemented Interfaces:
Arc, SetArc

public class HyperSetUnionArc
extends HyperSetArc

Arc representing Z = union( sources )


Field Summary
 
Fields inherited from interface jopt.csp.spi.arcalgorithm.graph.arc.Arc
BINARY, GENERIC, HYPER, NODE, SCHEDULE
 
Constructor Summary
HyperSetUnionArc(SetNode[] sources, SetNode target)
          Constructor
 
Method Summary
 void propagate()
          Attempts to reduce values in target node domain based on values in all source nodes
 void propagate(Node src)
          Attempts to reduce values in target node domain based on values in given source node
 java.lang.String toString()
          Returns string representation of arc
 
Methods inherited from class jopt.csp.spi.arcalgorithm.graph.arc.hyper.HyperArc
getArcType, getComplexity, getSourceDependencies, getSourceNodes, getTargetNode
 
Methods inherited from class jopt.csp.spi.arcalgorithm.graph.arc.AbstractArc
setAlgorithmStrength, setUseDomainDeltas
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jopt.csp.spi.arcalgorithm.graph.arc.Arc
getArcType, getComplexity, setAlgorithmStrength, setUseDomainDeltas
 

Constructor Detail

HyperSetUnionArc

public HyperSetUnionArc(SetNode[] sources,
                        SetNode target)
Constructor

Parameters:
sources - Source nodes in equation
target - Target node in equation
Method Detail

toString

public java.lang.String toString()
Returns string representation of arc


propagate

public final void propagate()
                     throws jopt.csp.variable.PropagationFailureException
Description copied from interface: Arc
Attempts to reduce values in target node domain based on values in all source nodes

Throws:
jopt.csp.variable.PropagationFailureException - If domain of target node becomes empty

propagate

public final void propagate(Node src)
                     throws jopt.csp.variable.PropagationFailureException
Description copied from interface: Arc
Attempts to reduce values in target node domain based on values in given source node

Parameters:
src - Source node that caused propagation to occur
Throws:
jopt.csp.variable.PropagationFailureException - If domain of target node becomes empty