|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jopt.csp.spi.arcalgorithm.domain.AbstractDomain jopt.csp.spi.arcalgorithm.domain.SummationDoubleComputedDomain
Constructor Summary | |
SummationDoubleComputedDomain(SummationDoubleDomainExpression aexpr,
jopt.csp.variable.CspGenericIndexRestriction idxRestriction)
Constructor |
Method Summary | |
boolean |
choicePointStackSet()
Returns true if a call to setChoicePointStack will fail |
void |
clearDelta()
Clears the delta set for this domain |
java.lang.Object |
clone()
Returns a copy of this domain |
jopt.csp.util.NumberIterator |
deltaValues()
Returns iterator of values in node's delta |
jopt.csp.util.NumSet |
getDeltaSet()
Returns the delta set for this domain |
java.lang.Object |
getDomainState()
Stores all necessary information for this domain allowing it to be restored to a previous state at a later point in time. |
double |
getMax()
Returns the maximum value of domain |
double |
getMin()
Returns minimum value of domain |
double |
getNextHigher(double val)
Returns the next higher value in the domain or current value if none exists |
double |
getNextLower(double val)
Returns the next lower value in the domain or current value if none exists |
double |
getPrecision()
Returns precision associated with this domain |
int |
getSize()
Returns size of domain |
boolean |
isBound()
Returns true if domain is bound to a value |
boolean |
isInDomain(double val)
Returns true if value is in domain |
void |
removeDomain(jopt.csp.util.NumSet vals)
Attempts to reduce a domain by removing a set of values |
void |
removeRange(double start,
double end)
Attempts to reduce domain by removing a range of values |
void |
removeValue(double val)
Attempts to remove a single value from the domain |
void |
restoreDomainState(java.lang.Object state)
Restores a domain to a previous state using the information contained in the state parameter. |
void |
setChoicePointStack(ChoicePointStack cps)
Sets the choicepoint stack associated with this domain. |
void |
setDomain(jopt.csp.util.NumSet s)
Attempts to reduce a domain by restricting it to a set of values |
void |
setMax(double val)
Attempts to reduce domain to a maximum value. |
void |
setMin(double val)
Attempts to reduce domain to a minimum value. |
void |
setPrecision(double p)
Sets precision associated with this domain |
void |
setRange(double start,
double end)
Attempts to reduce domain to within a range of values |
void |
setValue(double val)
Attempts to reduce domain to a single value. |
jopt.csp.util.NumSet |
toSet()
Returns set of Numbers and NumIntervals representing domain |
java.lang.String |
toString()
Returns string representation of domain |
jopt.csp.util.NumberIterator |
values()
Returns iterator of values in node's domain |
Methods inherited from class jopt.csp.spi.arcalgorithm.domain.AbstractDomain |
addDomainChangeListener, addRangeChangeListener, addValueChangeListener, changed, removeDomainChangeListener, removeRangeChangeListener, removeValueChangeListener |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jopt.csp.spi.arcalgorithm.domain.Domain |
changed |
Constructor Detail |
public SummationDoubleComputedDomain(SummationDoubleDomainExpression aexpr, jopt.csp.variable.CspGenericIndexRestriction idxRestriction)
Method Detail |
public void setPrecision(double p)
setPrecision
in interface DoubleDomain
public double getPrecision()
getPrecision
in interface DoubleDomain
public int getSize()
getSize
in interface NumDomain
public boolean isBound()
isBound
in interface Domain
public double getMax()
getMax
in interface DoubleDomain
public double getMin()
getMin
in interface DoubleDomain
public boolean isInDomain(double val)
isInDomain
in interface DoubleDomain
public double getNextHigher(double val)
getNextHigher
in interface DoubleDomain
public double getNextLower(double val)
getNextLower
in interface DoubleDomain
public jopt.csp.util.NumberIterator values()
values
in interface NumDomain
public jopt.csp.util.NumberIterator deltaValues()
deltaValues
in interface NumDomain
public jopt.csp.util.NumSet toSet()
toSet
in interface NumDomain
public jopt.csp.util.NumSet getDeltaSet()
getDeltaSet
in interface NumDomain
public void clearDelta()
clearDelta
in interface Domain
public java.lang.String toString()
public void setChoicePointStack(ChoicePointStack cps)
setChoicePointStack
in interface ChoicePointDataSource
public boolean choicePointStackSet()
choicePointStackSet
in interface ChoicePointDataSource
public void setMax(double val)
setMax
in interface DoubleDomain
public void setMin(double val)
setMin
in interface DoubleDomain
public void setValue(double val)
setValue
in interface DoubleDomain
public void removeValue(double val)
removeValue
in interface DoubleDomain
public void setRange(double start, double end)
setRange
in interface DoubleDomain
public void removeRange(double start, double end)
removeRange
in interface DoubleDomain
public void setDomain(jopt.csp.util.NumSet s)
setDomain
in interface NumDomain
public void removeDomain(jopt.csp.util.NumSet vals)
removeDomain
in interface NumDomain
public java.lang.Object getDomainState()
getDomainState
in interface Domain
Domain.restoreDomainState(java.lang.Object)
public void restoreDomainState(java.lang.Object state)
restoreDomainState
in interface Domain
state
- The state information to which this domain should be setDomain.restoreDomainState(java.lang.Object)
public java.lang.Object clone()
Domain
clone
in interface Domain
clone
in class AbstractDomain
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |