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 TypeMethod and Description
      static EDMLocalContextcreateLocalContext(java.lang.String name)
      Create a new local context.
      static EDMRemoteContextcreateRemoteContext(java.lang.String name)
      Create a new remote context.
      static EDMLoggergetEDMTrace()
      Get the EDM trace wrapper
      static java.lang.StringgetLibrary(java.lang.String key)
      Check library loaded
      static booleaninitClient()
      Init EDM for client using default libraries
      static booleaninitDotNet()
      Init EDM for .NET usage (beta)
      static booleaninitMultiThread()
      Init EDM for multithread remote only using default libraries
      static booleaninitSingleUser()
      Init EDM for single-user using default libraries
      static booleanisDotNet()
      Return true if this EDMInterface is running as .NET, false if java
      static intloadLibraries()
      Load the specified libraries.
      static java.lang.StringremoveLibrary(java.lang.String key)
      Remove a library
      static java.lang.StringsetLibrary(java.lang.String key, java.lang.String libname)
      define a library to be loaded
      static voidsetRuntimeLicense(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 java

        Returns: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 loaded

        Parameters: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 loaded

        Parameters: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 library

        Parameters: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 libraries

        Returns:true if the initiaytion of the library returned expected value

      • initClient

        public static boolean initClient()

        Init EDM for client using default libraries

        Returns:true if the initiaytion of the library returned expected value

      • initMultiThread

        public static boolean initMultiThread()

        Init EDM for multithread remote only using default libraries

        Returns: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 wrapper

        Returns: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