EDMInterface
edm.edom3
Class EDMInterface
- java.lang.Object
- edm.edom3.EDMInterface
Direct Known Subclasses:EDMLocal, EDMRemote
public class EDMInterface extends java.lang.Object
Main class for the EDOM3 interface. Initializes the interface by calling one of the init() methods and get yourself anÂEDMContext
 from one of the create() methods to get started.
Constructor Summary
ConstructorsÂ
Constructor and Description EDMInterface()
Â
Method Summary
All Methods Static Methods Concrete MethodsÂ
Modifier and Type Method and Description static EDMLocalContext
createLocalContext(java.lang.String name)
Create a new local context.static EDMRemoteContext
createRemoteContext(java.lang.String name)
Create a new remote context.static EDMLogger
getEDMTrace()
Get the EDM trace wrapperstatic java.lang.String
getLibrary(java.lang.String key)
Check library loadedstatic boolean
initClient()
Init EDM for client using default librariesstatic boolean
initDotNet()
Init EDM for .NET usage (beta)static boolean
initMultiThread()
Init EDM for multithread remote only using default librariesstatic boolean
initSingleUser()
Init EDM for single-user using default librariesstatic boolean
isDotNet()
Return true if this EDMInterface is running as .NET, false if javastatic int
loadLibraries()
Load the specified libraries.static java.lang.String
removeLibrary(java.lang.String key)
Remove a librarystatic java.lang.String
setLibrary(java.lang.String key, java.lang.String libname)
define a library to be loadedstatic void
setRuntimeLicense(java.lang.String license)
Assign a runtime license for your application.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
EDMInterface
public EDMInterface()
Method Detail
isDotNet
public static boolean isDotNet()
Return true if this EDMInterface is running as .NET, false if javaReturns:true if this EDMInterface is running as .NET, false if java
createLocalContext
public static EDMLocalContext createLocalContext(java.lang.String name) throws EdmiException
Create a new local context. You must use the login method before you can use it.Parameters:name - context name, must be unique for all local contexts.Returns:new contextThrows:EdmiException - if the method fails
createRemoteContext
public static EDMRemoteContext createRemoteContext(java.lang.String name) throws EdmiException
Create a new remote context. You must use the login method before you can use it.Parameters:name - context name, must be unique for all remote contexts.Returns:new contextThrows:EdmiException - if the method fails
setLibrary
public static java.lang.String setLibrary(java.lang.String key, java.lang.String libname)
define a library to be loadedParameters:key - internal key for the librarylibname - name for libraryReturns:name for the library
getLibrary
public static java.lang.String getLibrary(java.lang.String key)
Check library loadedParameters:key - internal key for the libraryReturns:name for the library, null if not found
removeLibrary
public static java.lang.String removeLibrary(java.lang.String key)
Remove a libraryParameters:key - internal key for the libraryReturns:name of removed library, null if not found
loadLibraries
public static int loadLibraries()
Load the specified libraries. After loadLibraries is called further lib defs must be controlled by the user himself.Returns:init code from edmi: usually -1 no libraries found, 0 = OK, > 0 = error code.
initSingleUser
public static boolean initSingleUser()
Init EDM for single-user using default librariesReturns:true if the initiaytion of the library returned expected value
initClient
public static boolean initClient()
Init EDM for client using default librariesReturns:true if the initiaytion of the library returned expected value
initMultiThread
public static boolean initMultiThread()
Init EDM for multithread remote only using default librariesReturns:true if the initiation of the library returned expected value
initDotNet
public static boolean initDotNet()
Init EDM for .NET usage (beta)Returns:true if the initiation returned expected value
getEDMTrace
public static EDMLogger getEDMTrace() throws EdmiException
Get the EDM trace wrapperReturns:EDM trace wrapperThrows:EdmiException - if the mehod fails
setRuntimeLicense
public static void setRuntimeLicense(java.lang.String license) throws java.lang.Exception
Assign a runtime license for your application. NOTE: Only works for single user mode. initSingleUser() must be called first.Parameters:license - the runtime license stringThrows:java.lang.Exception - is no license is found