Package edm.edom3

Class 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 Description
      EDMInterface()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method 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 wrapper
      static java.lang.String getLibrary​(java.lang.String key)
      Check library loaded
      static boolean initDotNet()
      Init EDM for .NET usage (beta)
      static boolean initMultiThread()
      Init EDM for multithread remote only using default libraries
      static boolean initSingleUser()
      Init EDM for single-user using default libraries
      static boolean isDotNet()
      Return true if this EDMInterface is running as .NET, false if java
      static int loadLibraries()
      Load the specified libraries.
      static java.lang.String removeLibrary​(java.lang.String key)
      Remove a library
      static java.lang.String setLibrary​(java.lang.String key, java.lang.String libname)
      define a library to be loaded
      static 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 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 context
        Throws:
        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 context
        Throws:
        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 library
        libname - name for library
        Returns:
        name for the library
      • getLibrary

        public static java.lang.String getLibrary​(java.lang.String key)
        Check library loaded
        Parameters:
        key - internal key for the library
        Returns:
        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 library
        Returns:
        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
      • 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
      • 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 string
        Throws:
        java.lang.Exception - is no license is found