Class 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

    • Field Summary

      • Fields inherited from class com.artelys.kalis.intvarlist

        swigCMemOwn
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        KIntVarArray()
      default constructor
      protected 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 bounds
        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
    • 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)  
      • Methods inherited from class com.artelys.kalis.intvarlist

        add, add, check, emptyAndDelete, getCopyPtr, getCPtr, getElt, getNumberOfElements, initializeAsEmptyList, initializeListWithVa_list, insert, insert, isEmpty, makeList, print, removeLastElement, replace, replace
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 class com.artelys.kalis.intvarlist
      • delete

        public void delete()
        Overrides:
        delete in class com.artelys.kalis.intvarlist
      • check

        public int check​(com.artelys.kalis.SWIGTYPE_p_KIntVar_I KIntVar_I_ptr)