FreeHEP API
Version current

hep.aida.ref.function
Class FunctionCatalog

java.lang.Object
  extended byhep.aida.ref.function.FunctionCatalog
All Implemented Interfaces:
hep.aida.dev.IDevFunctionCatalog, hep.aida.IFunctionCatalog, Serializable

public class FunctionCatalog
extends Object
implements hep.aida.dev.IDevFunctionCatalog, Serializable

Author:
serbo
See Also:
Serialized Form
Source Code:
FunctionCatalog.java

Field Summary
protected static FunctionCatalog catalog
           
protected  FunctionCreator creator
           
static String[] defaultNames
           
protected  TreeMap hash
           
static String prefix
           
protected  TreeMap userHash
           
 
Constructor Summary
protected FunctionCatalog()
           
protected FunctionCatalog(String fileName)
           
 
Method Summary
 boolean add(String nameId, hep.aida.IFunction f)
           
 boolean add(String nameId, String codelet)
           
 hep.aida.IFunction clone(String nameInATree, hep.aida.IFunction f)
           
 hep.aida.IFunction create(String model)
           
 hep.aida.IFunction create(String name, String model)
           
 String[] defaultFunctions()
           
static FunctionCatalog getFunctionCatalog()
           
static FunctionCatalog getFunctionCatalog(String fileName)
           
 FunctionCreator getFunctionCreator()
           
 String[] list()
           
 void loadAll(String nameOnDisk)
           
static void main(String[] args)
           
 void remove(String nameId)
           
 void storeAll(String nameOnDisk)
           
static void test1()
           
static void test2()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

defaultNames

public static String[] defaultNames

prefix

public static String prefix

catalog

protected static FunctionCatalog catalog

hash

protected TreeMap hash

userHash

protected TreeMap userHash

creator

protected FunctionCreator creator
Constructor Detail

FunctionCatalog

protected FunctionCatalog()

FunctionCatalog

protected FunctionCatalog(String fileName)
                   throws IOException
Method Detail

getFunctionCatalog

public static FunctionCatalog getFunctionCatalog()

getFunctionCatalog

public static FunctionCatalog getFunctionCatalog(String fileName)
                                          throws IOException
Throws:
IOException

add

public boolean add(String nameId,
                   hep.aida.IFunction f)
Specified by:
add in interface hep.aida.IFunctionCatalog

add

public boolean add(String nameId,
                   String codelet)
Specified by:
add in interface hep.aida.IFunctionCatalog

list

public String[] list()
Specified by:
list in interface hep.aida.IFunctionCatalog

create

public hep.aida.IFunction create(String model)
Specified by:
create in interface hep.aida.dev.IDevFunctionCatalog

create

public hep.aida.IFunction create(String name,
                                 String model)

clone

public hep.aida.IFunction clone(String nameInATree,
                                hep.aida.IFunction f)

defaultFunctions

public String[] defaultFunctions()

loadAll

public void loadAll(String nameOnDisk)
             throws IOException
Specified by:
loadAll in interface hep.aida.IFunctionCatalog
Throws:
IOException

storeAll

public void storeAll(String nameOnDisk)
              throws IOException
Specified by:
storeAll in interface hep.aida.IFunctionCatalog
Throws:
IOException

remove

public void remove(String nameId)
Specified by:
remove in interface hep.aida.IFunctionCatalog

getFunctionCreator

public FunctionCreator getFunctionCreator()

toString

public String toString()

main

public static void main(String[] args)
                 throws ClassNotFoundException,
                        FileNotFoundException,
                        IOException
Throws:
ClassNotFoundException
FileNotFoundException
IOException

test1

public static void test1()
                  throws ClassNotFoundException,
                         FileNotFoundException,
                         IOException
Throws:
ClassNotFoundException
FileNotFoundException
IOException

test2

public static void test2()
                  throws ClassNotFoundException,
                         FileNotFoundException,
                         IOException
Throws:
ClassNotFoundException
FileNotFoundException
IOException

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.