Package com.artelys.kalis
Class KSession
- java.lang.Object
-
- com.artelys.kalis.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 Summary
Fields Modifier and Type Field Description protected boolean
swigCMemOwn
-
Constructor Summary
Constructors Modifier Constructor Description KSession()
Default constructor , printBanner activates the printing of the bannerKSession(boolean printBanner)
Default constructor , printBanner activates the printing of the bannerprotected
KSession(long cPtr, boolean cMemoryOwn)
KSession(short[] passwd)
Constructor with string licenseKSession(short[] passwd, boolean printBanner)
Constructor with string licenseKSession(KSession sessionToCopy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
protected void
finalize()
protected static long
getCPtr(KSession obj)
java.lang.String
getDebugServerAddress()
int
getDebugServerPort()
SWIGTYPE_p_KSession_I
getInternalPtr()
boolean
getManagedMode()
float
getVersion()
Return current version of libraryvoid
setDebugServerAddress(java.lang.String hostname, int port)
-
-
-
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 classjava.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()
-
-