Documentation of 'hep.aida.ref.function.FunctionCatalog' Java class
FunctionCatalog
hep.aida.ref.function

Class FunctionCatalog

    • Field Detail

      • defaultNames

        public static java.lang.String[] defaultNames
      • prefix

        public static java.lang.String prefix
    • Method Detail

      • getFunctionCatalog

        public static FunctionCatalog getFunctionCatalog(java.lang.String fileName)
                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • add

        public boolean add(java.lang.String nameId,
                           IFunction f)
        Description copied from interface: IFunctionCatalog
        Remember persistently definition (code!) of a function under a name. Scripted function created by the user may be automatically available in the subsequent analysis sessions. This is also a way to create new names for combinations of exisiting model functions ("G+G+E+P5"). Last but not least, system may be easily extended with model functions developed in the programming language directly. Predefined functions: "G","E","Pn".
        Specified by:
        add in interface IFunctionCatalog
      • add

        public boolean add(java.lang.String nameId,
                           java.lang.String codelet)
        Specified by:
        add in interface IFunctionCatalog
      • create

        public IFunction create(java.lang.String model)
        Description copied from interface: IDevFunctionCatalog
        Load implementation of a model function from a persistent storage and create a new object. Look-up for the proper shared library with the code for the function and load if not already loaded. This is much more that a simple factory method and in fact is a part of developper interface - user can use createFunctionByName from IFunctionFactory.
        Specified by:
        create in interface IDevFunctionCatalog
      • create

        public IFunction create(java.lang.String name,
                                java.lang.String model)
      • defaultFunctions

        public java.lang.String[] defaultFunctions()
      • loadAll

        public void loadAll(java.lang.String nameOnDisk)
                     throws java.io.IOException
        Specified by:
        loadAll in interface IFunctionCatalog
        Throws:
        java.io.IOException
      • storeAll

        public void storeAll(java.lang.String nameOnDisk)
                      throws java.io.IOException
        Specified by:
        storeAll in interface IFunctionCatalog
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • main

        public static void main(java.lang.String[] args)
                         throws java.lang.ClassNotFoundException,
                                java.io.FileNotFoundException,
                                java.io.IOException
        Throws:
        java.lang.ClassNotFoundException
        java.io.FileNotFoundException
        java.io.IOException
      • test1

        public static void test1()
                          throws java.lang.ClassNotFoundException,
                                 java.io.FileNotFoundException,
                                 java.io.IOException
        Throws:
        java.lang.ClassNotFoundException
        java.io.FileNotFoundException
        java.io.IOException
      • test2

        public static void test2()
                          throws java.lang.ClassNotFoundException,
                                 java.io.FileNotFoundException,
                                 java.io.IOException
        Throws:
        java.lang.ClassNotFoundException
        java.io.FileNotFoundException
        java.io.IOException

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.