|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface VarReal
This interface represents constrained real variables.
| Method Summary | |
|---|---|
VarReal |
abs()
Adds and returns a new VarReal that is constrained to be the absolute value of this variable. |
VarReal |
divide(double value)
Adds and returns a new VarReal that is constrained to be the division of this variable by the given value, i.e. |
VarReal |
divide(int value)
Adds and returns a new VarReal that is constrained to be the division of this variable by the given value, i.e. |
VarReal |
divide(Var var)
Adds and returns a new VarReal that is constrained to be the division of this variable by the given variable, i.e. |
VarReal |
divide(VarReal var)
Adds and returns a new VarReal that is constrained to be the division of this variable by the given variable, i.e. |
java.lang.String |
getInitialDomain()
Returns a string representation of the initial domain of this variable. |
double |
getMax()
Returns the current maximum value in the domain of this variable. |
double |
getMin()
Returns the current minimum value in the domain of this variable. |
double |
getValue()
Returns the value to which this variable has been instantiated, throws a RuntimeException if the variable is not instantiated. |
boolean |
isBound()
Returns true if the domain of the variable contains only one value. |
VarReal |
minus(double value)
Adds and returns a new VarReal that is constrained to be the difference of this variable and the given value, i.e. |
VarReal |
minus(int value)
Adds and returns a new VarReal that is constrained to be the difference of this variable and the given value, i.e. |
VarReal |
minus(Var var)
Adds and returns a new VarReal that is constrained to be the difference of this variable and the given variable, i.e. |
VarReal |
minus(VarReal var)
Adds and returns a new VarReal that is constrained to be the difference of this variable and the given variable, i.e. |
VarReal |
multiply(double value)
Adds and returns a new VarReal that is constrained to be the product of this variable and the given value, i.e. |
VarReal |
multiply(int value)
Adds and returns a new VarReal that is constrained to be the product of this variable and the given value, i.e. |
VarReal |
multiply(Var var)
Adds and returns a new VarReal that is constrained to be the product of this variable and the given variable, i.e. |
VarReal |
multiply(VarReal var)
Adds and returns a new VarReal that is constrained to be the product of this variable and the given variable, i.e. |
VarReal |
negative()
Adds and returns a new VarReal that is constrained to be the negation of this variable, i.e. |
VarReal |
plus(double value)
Adds and returns a new VarReal that is constrained to be the sum of this variable and the given value, i.e. |
VarReal |
plus(int value)
Adds and returns a new VarReal that is constrained to be the sum of this variable and the given value, i.e. |
VarReal |
plus(Var var)
Adds and returns a new VarReal that is constrained to be the sum of this variable and the given variable, i.e. |
VarReal |
plus(VarReal var)
Adds and returns a new VarReal that is constrained to be the sum of this variable and the given variable, i.e. |
VarReal |
pow(int value)
Adds and returns a new VarReal that is constrained to be this variable raised to the power of the given value, i.e. |
VarReal |
power(double value)
Adds and returns a new VarReal that is constrained to be this variable raised to the power of the given value, i.e. |
VarReal |
power(Var var)
Adds and returns a new VarReal that is constrained to be this variable raised to the power of the given variable, i.e. |
VarReal |
power(VarReal var)
Adds and returns a new VarReal that is constrained to be this variable raised to the power of the given real variable, i.e. |
void |
removeRange(double min,
double max)
Removes a range of values from the domain of this variable, throws an exception if unsuccessful. |
VarReal |
sqr()
Adds and returns a new VarReal that is constrained to be the product of this variable and itself, i.e. |
| Methods inherited from interface javax.constraints.ConstrainedVariable |
|---|
getImpl, getName, getObject, getProblem, setImpl, setName, setObject |
| Method Detail |
|---|
VarReal abs()
VarReal divide(double value)
value - the given value.
VarReal divide(int value)
value - the given value.
VarReal divide(Var var)
throws java.lang.Exception
var - the given variable.
java.lang.Exception - if dividing by zero.
VarReal divide(VarReal var)
throws java.lang.Exception
var - the given variable.
java.lang.Exception - if dividing by zero.java.lang.String getInitialDomain()
double getMax()
double getMin()
double getValue()
java.lang.RuntimeException - if this variable is not instantiated.boolean isBound()
VarReal minus(double value)
value - the given value.
VarReal minus(int value)
value - the given value.
VarReal minus(Var var)
var - the given variable.
VarReal minus(VarReal var)
var - the given variable.
VarReal multiply(double value)
value - the given value.
VarReal multiply(int value)
value - the given value.
VarReal multiply(Var var)
var - the given variable.
VarReal multiply(VarReal var)
var - the given variable.
VarReal negative()
VarReal plus(double value)
value - the given value.
VarReal plus(int value)
value - the given value.
VarReal plus(Var var)
var - the given variable.
VarReal plus(VarReal var)
var - the given variable.
VarReal pow(int value)
value - the given value.
VarReal power(double value)
value - the given value.
VarReal power(Var var)
var - the given variable.
VarReal power(VarReal var)
var - the given real variable.
void removeRange(double min,
double max)
throws java.lang.Exception
min - the minimum value of the range to be removed from the domain of this variable.max - the maximum value of the range to be removed from the domain of this variable.
java.lang.Exception - if the value is not present in the domain of this variable.VarReal sqr()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||