Class KResourceArray


  • public class KResourceArray
    extends com.artelys.kalis.resourcelist
    This class implements an array of KResource

    Example :
    
    KSchedule  s(...);
    
    // R is an array of KResource R0 R1 R2 R3 R4
    KResourceArray R(s,5,0,10,"T");
    

    Since:
    2016.1
    See Also:
    KResource

    • Field Summary

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

        swigCMemOwn
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        KResourceArray()
      default constructor
      protected KResourceArray​(long cPtr, boolean cMemoryOwn)  
        KResourceArray​(KSchedule schedule, int nbResource)
      This constructor allows to build an array of variables with the same bounds
        KResourceArray​(KSchedule schedule, int nbResource, 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_KResource_I _ptr)  
      void delete()  
      protected void finalize()  
      protected static long getCPtr​(KResourceArray obj)  
      • Methods inherited from class com.artelys.kalis.resourcelist

        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

      • KResourceArray

        protected KResourceArray​(long cPtr,
                                 boolean cMemoryOwn)
      • KResourceArray

        public KResourceArray()
        default constructor
      • KResourceArray

        public KResourceArray​(KSchedule schedule,
                              int nbResource,
                              java.lang.String name)
        This constructor allows to build an array of variables with the same bounds
      • KResourceArray

        public KResourceArray​(KSchedule schedule,
                              int nbResource)
        This constructor allows to build an array of variables with the same bounds
    • Method Detail

      • finalize

        protected void finalize()
        Overrides:
        finalize in class com.artelys.kalis.resourcelist
      • delete

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

        public int check​(com.artelys.kalis.SWIGTYPE_p_KResource_I _ptr)