javax.constraints
Interface VarRealSelector


public interface VarRealSelector

This is a common interface for selection of a constrained real variable from an array of real variables. Used inside search strategies.


Method Summary
 VarReal[] getVarReals()
          Returns the array of constrained real variables upon which this selector was defined.
 int select()
          Returns the index of the selected variable in the array of constrained real variables upon which this selector was defined.
 

Method Detail

getVarReals

VarReal[] getVarReals()
Returns the array of constrained real variables upon which this selector was defined.

Returns:
the array of constrained real variables upon which this selector was defined.

select

int select()
Returns the index of the selected variable in the array of constrained real variables upon which this selector was defined. If no real variables to select, it returns -1;

Returns:
the index of the selected real variable in the array of constrained real variables upon which this selector was defined. Returns -1 if there are no real variables to select.