| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface implemented by double precision floating point variables. The domain associated with this type of variable can be modified unlike CspDoubleExpr objects.
| Method Summary | |
 double | 
getMax()
Returns the maximum value of this variable's domain  | 
 double | 
getMin()
Returns the minimum value of this variable's domain  | 
 double | 
getNextHigher(double val)
Returns the next higher value in this variable's domain or current value if none exists  | 
 double | 
getNextLower(double val)
Returns the next lower value in this variable's domain or current value if none exists  | 
 boolean | 
isInDomain(double val)
Returns true if the specified value is in this variable's domain  | 
 void | 
removeAll(DoubleSet set)
Attempts to reduce this variable's domain by removing a set of values  | 
 void | 
removeRange(double start,
            double end)
Attempts to reduce this variable's domain by removing a range of values  | 
 void | 
removeValue(double val)
Attempts to remove a single value from this variable's domain  | 
 void | 
setMax(double val)
Attempts to reduce this variable's domain to be less than the specified maximum value.  | 
 void | 
setMin(double val)
Attempts to reduce this variable's domain to be greater than the specified minimum value.  | 
 void | 
setRange(double start,
         double end)
Attempts to reduce this variable's domain to within a range of values  | 
 void | 
setValue(double val)
Attempts to reduce this variable's domain to a single value.  | 
| Methods inherited from interface jopt.csp.variable.CspDoubleExpr | 
add, add, between, between, divide, divide, eq, eq, geq, geq, getPrecision, leq, leq, multiply, multiply, notBetween, notBetween, setPrecision, subtract, subtract | 
| Methods inherited from interface jopt.csp.variable.CspNumExpr | 
between, between, between, between, eq, geq, getName, gt, isBound, leq, lt, neq, notBetween, notBetween, notBetween, notBetween, setName | 
| Methods inherited from interface jopt.csp.variable.CspVariable | 
getName, getSize, isBound | 
| Method Detail | 
public double getMax()
getMax in interface CspDoubleExprpublic double getMin()
getMin in interface CspDoubleExprpublic boolean isInDomain(double val)
val - value that is to be checked for its presence in the domain
public void setMax(double val)
            throws PropagationFailureException
val - value to be set as the maximum of the domain
PropagationFailureException - If this would cause the
 domain to become empty
public void setMin(double val)
            throws PropagationFailureException
val - value to be set as the minimum of the domain
PropagationFailureException - If this would cause the
 domain to become empty
public void setValue(double val)
              throws PropagationFailureException
val - value to restrict this variable's domain to
PropagationFailureException - If this would cause the
 domain to become empty
public void removeValue(double val)
                 throws PropagationFailureException
PropagationFailureException - If this would cause the
 domain to become empty
public void setRange(double start,
                     double end)
              throws PropagationFailureException
start - value to be set as the minimum of this variable's domainend - value to be set as the maximum of this variable's domain
PropagationFailureException - If this would cause the
 domain to become empty
public void removeRange(double start,
                        double end)
                 throws PropagationFailureException
start - minimum value of range of values to be removedend - maximum value of range of values to be removed
PropagationFailureException - If this would cause the
 domain to become empty
public void removeAll(DoubleSet set)
               throws PropagationFailureException
set - set of values to remove from the domain
PropagationFailureException - If this would cause the
 domain to become emptypublic double getNextHigher(double val)
val - value of the current value
public double getNextLower(double val)
val - value of the current value
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||