Class KSession


  • public class KSession
    extends java.lang.Object
    Nothing can be done in Artelys Kalis outside a KSession object. All the
    problems stated and solved must be held by such an object : for this reason
    the creation of a KSession object is the first thing to do at the beginning
    of the program.

    The KSession class has one main functionality :
    - license checking : when created, the KSession object will look for a valid license of the software

    The syntax for the creation of a KSession object is the following :
    
    KSession mySession(false);
    

    This statement creates a KSession object variable named mySession with no printing of the banner.
    We could have created our KSession using this syntax :

    
    KSession mySession;
    

    In this case, the banner would have been printed.

    Since:
    2016.1
    • Field Detail

      • swigCMemOwn

        protected transient boolean swigCMemOwn
    • Constructor Detail

      • KSession

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

        public KSession​(boolean printBanner)
        Default constructor , printBanner activates the printing of the banner
      • KSession

        public KSession()
        Default constructor , printBanner activates the printing of the banner
      • KSession

        public KSession​(short[] passwd,
                        boolean printBanner)
        Constructor with string license
      • KSession

        public KSession​(short[] passwd)
        Constructor with string license
      • KSession

        public KSession​(KSession sessionToCopy)
    • Method Detail

      • getCPtr

        protected static long getCPtr​(KSession obj)
      • finalize

        protected void finalize()
        Overrides:
        finalize in class java.lang.Object
      • delete

        public void delete()
      • getVersion

        public float getVersion()
        Return current version of library
      • setDebugServerAddress

        public void setDebugServerAddress​(java.lang.String hostname,
                                          int port)
      • getDebugServerAddress

        public java.lang.String getDebugServerAddress()
      • getDebugServerPort

        public int getDebugServerPort()
      • getManagedMode

        public boolean getManagedMode()
      • getInternalPtr

        public SWIGTYPE_p_KSession_I getInternalPtr()