jopt.csp.spi.arcalgorithm.domain
Interface FloatDomain

All Superinterfaces:
Domain, NumDomain
All Known Implementing Classes:
BaseFloatDomain, FloatComputedDomain, FloatDomainWrapper, SummationFloatComputedDomain

public interface FloatDomain
extends NumDomain

Interface implemented by float domains


Method Summary
 float getMax()
          Returns maximum value of domain
 float getMin()
          Returns minimum value of domain
 float getNextHigher(float val)
          Returns the next higher value in the domain or current value if none exists
 float getNextLower(float val)
          Returns the next lower value in the domain or current value if none exists
 float getPrecision()
          Returns precision of set
 boolean isInDomain(float val)
          Returns true if value is in domain
 void removeRange(float start, float end)
          Attempts to reduce domain by removing a range of values
 void removeValue(float val)
          Attempts to remove a single value from the domain
 void setMax(float val)
          Attempts to reduce domain to a maximum value.
 void setMin(float val)
          Attempts to reduce domain to a minimum value.
 void setPrecision(float precision)
          Sets precision of set
 void setRange(float start, float end)
          Attempts to reduce domain to within a range of values
 void setValue(float val)
          Attempts to reduce domain to a single value.
 
Methods inherited from interface jopt.csp.spi.arcalgorithm.domain.NumDomain
deltaValues, getDeltaSet, getSize, removeDomain, setDomain, toSet, values
 
Methods inherited from interface jopt.csp.spi.arcalgorithm.domain.Domain
changed, clearDelta, clone, getDomainState, isBound, restoreDomainState
 

Method Detail

getMax

public float getMax()
Returns maximum value of domain


getMin

public float getMin()
Returns minimum value of domain


isInDomain

public boolean isInDomain(float val)
Returns true if value is in domain


setMax

public void setMax(float val)
            throws jopt.csp.variable.PropagationFailureException
Attempts to reduce domain to a maximum value.

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

setMin

public void setMin(float val)
            throws jopt.csp.variable.PropagationFailureException
Attempts to reduce domain to a minimum value.

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

setValue

public void setValue(float val)
              throws jopt.csp.variable.PropagationFailureException
Attempts to reduce domain to a single value.

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

removeValue

public void removeValue(float val)
                 throws jopt.csp.variable.PropagationFailureException
Attempts to remove a single value from the domain

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

setRange

public void setRange(float start,
                     float end)
              throws jopt.csp.variable.PropagationFailureException
Attempts to reduce domain to within a range of values

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

removeRange

public void removeRange(float start,
                        float end)
                 throws jopt.csp.variable.PropagationFailureException
Attempts to reduce domain by removing a range of values

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

getNextHigher

public float getNextHigher(float val)
Returns the next higher value in the domain or current value if none exists


getNextLower

public float getNextLower(float val)
Returns the next lower value in the domain or current value if none exists


setPrecision

public void setPrecision(float precision)
Sets precision of set


getPrecision

public float getPrecision()
Returns precision of set