jopt.csp.spi.arcalgorithm.domain
Interface NumDomain

All Superinterfaces:
Domain
All Known Subinterfaces:
BooleanDomain, DoubleDomain, FloatDomain, IntDomain, LongDomain
All Known Implementing Classes:
BaseDoubleDomain, BaseFloatDomain, BaseIntDomain, BaseLongDomain, BooleanComputedDomain, BooleanIntDomain, DoubleComputedDomain, DoubleDomainWrapper, FloatComputedDomain, FloatDomainWrapper, IntComputedDomain, LongComputedDomain, LongDomainWrapper, SummationDoubleComputedDomain, SummationFloatComputedDomain, SummationIntComputedDomain, SummationLongComputedDomain

public interface NumDomain
extends Domain

Base class for all numeric based domain interfaces


Method Summary
 jopt.csp.util.NumberIterator deltaValues()
          Returns iterator for the node's delta set containing values that have been removed from the domain since clearDelta was last run.
 jopt.csp.util.NumSet getDeltaSet()
          Returns the delta set containing values that have been removed from the domain since clearDelta was last run.
 int getSize()
          Returns size of domain
 void removeDomain(jopt.csp.util.NumSet vals)
          Attempts to reduce a domain by removing a set of values
 void setDomain(jopt.csp.util.NumSet s)
          Attempts to reduce a domain by restricting it to a set of values
 jopt.csp.util.NumSet toSet()
          Returns set of Numbers and NumIntervals representing domain
 jopt.csp.util.NumberIterator values()
          Returns iterator of values in node's domain
 
Methods inherited from interface jopt.csp.spi.arcalgorithm.domain.Domain
changed, clearDelta, clone, getDomainState, isBound, restoreDomainState
 

Method Detail

getSize

public int getSize()
Returns size of domain


setDomain

public void setDomain(jopt.csp.util.NumSet s)
               throws jopt.csp.variable.PropagationFailureException
Attempts to reduce a domain by restricting it to a set of values

Throws:
jopt.csp.variable.PropagationFailureException - If domain is empty

removeDomain

public void removeDomain(jopt.csp.util.NumSet vals)
                  throws jopt.csp.variable.PropagationFailureException
Attempts to reduce a domain by removing a set of values

Throws:
jopt.csp.variable.PropagationFailureException - If domain is empty

values

public jopt.csp.util.NumberIterator values()
Returns iterator of values in node's domain


deltaValues

public jopt.csp.util.NumberIterator deltaValues()
Returns iterator for the node's delta set containing values that have been removed from the domain since clearDelta was last run.


toSet

public jopt.csp.util.NumSet toSet()
Returns set of Numbers and NumIntervals representing domain


getDeltaSet

public jopt.csp.util.NumSet getDeltaSet()
Returns the delta set containing values that have been removed from the domain since clearDelta was last run.