|
PPL Java Language Interface 2.0
|
A dimension of the vector space. More...
Public Member Functions | |
| Variable (long i) | |
Builds the variable corresponding to the Cartesian axis of index i. | |
| long | id () |
Returns the index of the Cartesian axis associated to this. | |
| int | compareTo (Variable v) |
Returns a negative number if this is smaller than v, a zero if this equals v, a positive number if v is greater than v. | |
Static Public Member Functions | |
| static native void | setStringifier (Variable_Stringifier vs) |
| Sets the variable stringifier object for the current thread. | |
A dimension of the vector space.
An object of the class Variable represents a dimension of the space, that is one of the Cartesian axes. Variables are used as basic blocks in order to build more complex linear expressions. Each variable is identified by a non-negative integer, representing the index of the corresponding Cartesian axis (the first axis has index 0).
|
inline |
Builds the variable corresponding to the Cartesian axis of index i.
| RuntimeErrorException | Thrown if i is has negative value. |
| i | The index of the selected element or space dimension. |
|
inline |
Returns the index of the Cartesian axis associated to this.
this.
|
inline |
Returns a negative number if this is smaller than v, a zero if this equals v, a positive number if v is greater than v.
| v | The value to inspect or modify. |
this is smaller than v, a zero if this equals v, a positive number if v is greater than v.
|
static |
Sets the variable stringifier object for the current thread.
A variable stringifier object provides customization for the toString method; if no variable stringifier object is set (or if it is set to a null refeerence value), the PPL default variable output function will be used.
| vs | The set of selected variables. |