Class KSession

java.lang.Object
com.artelys.kalis.KSession

public class KSession extends 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 Details

    • swigCMemOwn

      protected transient boolean swigCMemOwn
  • Constructor Details

    • 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 Details

    • getCPtr

      protected static long getCPtr(KSession obj)
    • finalize

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

      public void delete()
    • getVersion

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

      public void setDebugServerAddress(String hostname, int port)
    • getDebugServerAddress

      public String getDebugServerAddress()
    • getDebugServerPort

      public int getDebugServerPort()
    • getManagedMode

      public boolean getManagedMode()
    • getInternalPtr

      public com.artelys.kalis.SWIGTYPE_p_KSession_I getInternalPtr()