Package com.artelys.kalis
Class KIntVarArray
- java.lang.Object
-
- com.artelys.kalis.intvarlist
-
- com.artelys.kalis.KIntVarArray
-
public class KIntVarArray extends com.artelys.kalis.intvarlist
This class implements an array of KIntVar with enumerated (finite) domains
Example :
KProblem p(...); // T is an array of KIntVar T0 T1 T2 T3 T4 with domain [0..10] KIntVarArray T(p,5,0,10,"T");
- Since:
- 2016.1
- See Also:
KIntVar
-
-
Constructor Summary
Constructors Modifier Constructor Description KIntVarArray()
default constructorprotected
KIntVarArray(long cPtr, boolean cMemoryOwn)
KIntVarArray(KProblem problem, int nbKIntVar, int minValue, int maxValue)
This constructor allows to build an array of variables with the same boundsKIntVarArray(KProblem problem, int nbKIntVar, int minValue, int maxValue, java.lang.String name)
This constructor allows to build an array of variables with the same bounds
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
check(com.artelys.kalis.SWIGTYPE_p_KIntVar_I KIntVar_I_ptr)
void
delete()
protected void
finalize()
protected static long
getCPtr(KIntVarArray obj)
-
-
-
Constructor Detail
-
KIntVarArray
protected KIntVarArray(long cPtr, boolean cMemoryOwn)
-
KIntVarArray
public KIntVarArray()
default constructor
-
KIntVarArray
public KIntVarArray(KProblem problem, int nbKIntVar, int minValue, int maxValue, java.lang.String name)
This constructor allows to build an array of variables with the same bounds
-
KIntVarArray
public KIntVarArray(KProblem problem, int nbKIntVar, int minValue, int maxValue)
This constructor allows to build an array of variables with the same bounds
-
-
Method Detail
-
getCPtr
protected static long getCPtr(KIntVarArray obj)
-
finalize
protected void finalize()
- Overrides:
finalize
in classcom.artelys.kalis.intvarlist
-
delete
public void delete()
- Overrides:
delete
in classcom.artelys.kalis.intvarlist
-
check
public int check(com.artelys.kalis.SWIGTYPE_p_KIntVar_I KIntVar_I_ptr)
-
-