hep.aida.ref.tree
Class TreeFactory

java.lang.Object
  extended by hep.aida.ref.tree.TreeFactory
All Implemented Interfaces:
hep.aida.ITreeFactory

public class TreeFactory
extends java.lang.Object
implements hep.aida.ITreeFactory


Field Summary
 
Fields inherited from interface hep.aida.ITreeFactory
AUTO, CREATE, READONLY, RECREATE, UPDATE
 
Constructor Summary
TreeFactory(hep.aida.IAnalysisFactory analysisFactory)
          The default constructor.
 
Method Summary
 hep.aida.ITree create()
          Creates a new tree and associates it with a store.
 hep.aida.ITree create(java.lang.String storeName)
          Creates a new tree and associates it with a store.
 hep.aida.ITree create(java.lang.String storeName, java.lang.String storeType)
          Creates a new tree and associates it with a store.
 hep.aida.ITree create(java.lang.String storeName, java.lang.String storeType, boolean readOnly)
          Creates a new tree and associates it with a store.
 hep.aida.ITree create(java.lang.String storeName, java.lang.String storeType, boolean readOnly, boolean createNew)
          Creates a new tree and associates it with a store.
 hep.aida.ITree create(java.lang.String storeName, java.lang.String storeType, boolean readOnly, boolean createNew, java.lang.String options)
          Creates a new tree and associates it with a store.
 hep.aida.ITree createNamedTree(java.lang.String name, java.lang.String storeName, java.lang.String storeType)
           
 hep.aida.ITree createNamedTree(java.lang.String name, java.lang.String storeName, java.lang.String storeType, int mode)
           
 hep.aida.ITree createNamedTree(java.lang.String name, java.lang.String storeName, java.lang.String storeType, int mode, java.lang.String options)
           
 hep.aida.ITree createTree()
          Creates a new tree and associates it with a store.
 hep.aida.ITree createTree(java.lang.String options)
           
 hep.aida.ITree createTree(java.lang.String storeName, java.lang.String storeType)
           
 hep.aida.ITree createTree(java.lang.String storeName, java.lang.String storeType, int mode)
           
 hep.aida.ITree createTree(java.lang.String storeName, java.lang.String storeType, int mode, java.lang.String options)
           
 hep.aida.ITree createTree(java.lang.String storeName, java.lang.String storeType, java.lang.String options)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeFactory

public TreeFactory(hep.aida.IAnalysisFactory analysisFactory)
The default constructor.

Method Detail

create

public hep.aida.ITree create()
Creates a new tree and associates it with a store. The store is assumed to be read/write. The store will be created if it does not exist. in memory and therefore will not be associated with a file.

Specified by:
create in interface hep.aida.ITreeFactory

create

public hep.aida.ITree create(java.lang.String storeName)
                      throws java.lang.IllegalArgumentException,
                             java.io.IOException
Creates a new tree and associates it with a store. The store is assumed to be read/write. The store will be created if it does not exist.

Specified by:
create in interface hep.aida.ITreeFactory
Parameters:
storeName - The name of the store, if empty (""), the tree is created in memory and therefore will not be associated with a file.
Throws:
java.io.IOException - if the store already exists
java.lang.IllegalArgumentException

create

public hep.aida.ITree create(java.lang.String storeName,
                             java.lang.String storeType)
                      throws java.lang.IllegalArgumentException,
                             java.io.IOException
Creates a new tree and associates it with a store. The store is assumed to be read/write. The store will be created if it does not exist.

Specified by:
create in interface hep.aida.ITreeFactory
Parameters:
storeName - The name of the store, if empty (""), the tree is created in memory and therefore will not be associated with a file.
storeType - Implementation specific string, may control store type
Throws:
java.io.IOException - if the store already exists
java.lang.IllegalArgumentException

create

public hep.aida.ITree create(java.lang.String storeName,
                             java.lang.String storeType,
                             boolean readOnly)
                      throws java.lang.IllegalArgumentException,
                             java.io.IOException
Creates a new tree and associates it with a store. The store is assumed to be read/write. The store will be created if it does not exist.

Specified by:
create in interface hep.aida.ITreeFactory
Parameters:
storeName - The name of the store, if empty (""), the tree is created in memory and therefore will not be associated with a file.
storeType - Implementation specific string, may control store type
readOnly - If true the store is opened readonly, an exception if it does not exist
Throws:
java.io.IOException - if the store already exists
java.lang.IllegalArgumentException

create

public hep.aida.ITree create(java.lang.String storeName,
                             java.lang.String storeType,
                             boolean readOnly,
                             boolean createNew)
                      throws java.lang.IllegalArgumentException,
                             java.io.IOException
Creates a new tree and associates it with a store. The store is assumed to be read/write. The store will be created if it does not exist.

Specified by:
create in interface hep.aida.ITreeFactory
Parameters:
storeName - The name of the store, if empty (""), the tree is created in memory and therefore will not be associated with a file.
storeType - Implementation specific string, may control store type
readOnly - If true the store is opened readonly, an exception if it does not exist
createNew - If false the file must exist, if true the file will be created
Throws:
java.io.IOException - if the store already exists
java.lang.IllegalArgumentException

create

public hep.aida.ITree create(java.lang.String storeName,
                             java.lang.String storeType,
                             boolean readOnly,
                             boolean createNew,
                             java.lang.String options)
                      throws java.lang.IllegalArgumentException,
                             java.io.IOException
Creates a new tree and associates it with a store. The store is assumed to be read/write. The store will be created if it does not exist.

Specified by:
create in interface hep.aida.ITreeFactory
Parameters:
storeName - The name of the store, if empty (""), the tree is created in memory and therefore will not be associated with a file.
storeType - Implementation specific string, may control store type
readOnly - If true the store is opened readonly, an exception if it does not exist
createNew - If false the file must exist, if true the file will be created
options - Other options, currently are not specified
Throws:
java.io.IOException - if the store already exists
java.lang.IllegalArgumentException

createTree

public hep.aida.ITree createTree()
Creates a new tree and associates it with a store.

The definition of the various modes than can be specified are:

Specified by:
createTree in interface hep.aida.ITreeFactory
Parameters:
storeName - The name of the store, if empty (""), the tree is created in memory and therefore will not be associated with a file.
storeType - Implementation specific string, may control store type
mode - One of AUTO, CREATE, RECREATE, READONLY, UPDATE.
Throws:
java.io.IOException - if the store already exists
java.lang.IllegalArgumentException

createTree

public hep.aida.ITree createTree(java.lang.String options)
Specified by:
createTree in interface hep.aida.ITreeFactory

createTree

public hep.aida.ITree createTree(java.lang.String storeName,
                                 java.lang.String storeType)
                          throws java.lang.IllegalArgumentException,
                                 java.io.IOException
Specified by:
createTree in interface hep.aida.ITreeFactory
Throws:
java.lang.IllegalArgumentException
java.io.IOException

createTree

public hep.aida.ITree createTree(java.lang.String storeName,
                                 java.lang.String storeType,
                                 java.lang.String options)
                          throws java.lang.IllegalArgumentException,
                                 java.io.IOException
Throws:
java.lang.IllegalArgumentException
java.io.IOException

createTree

public hep.aida.ITree createTree(java.lang.String storeName,
                                 java.lang.String storeType,
                                 int mode)
                          throws java.lang.IllegalArgumentException,
                                 java.io.IOException
Specified by:
createTree in interface hep.aida.ITreeFactory
Throws:
java.lang.IllegalArgumentException
java.io.IOException

createTree

public hep.aida.ITree createTree(java.lang.String storeName,
                                 java.lang.String storeType,
                                 int mode,
                                 java.lang.String options)
                          throws java.lang.IllegalArgumentException,
                                 java.io.IOException
Specified by:
createTree in interface hep.aida.ITreeFactory
Throws:
java.lang.IllegalArgumentException
java.io.IOException

createNamedTree

public hep.aida.ITree createNamedTree(java.lang.String name,
                                      java.lang.String storeName,
                                      java.lang.String storeType)
                               throws java.lang.IllegalArgumentException,
                                      java.io.IOException
Specified by:
createNamedTree in interface hep.aida.ITreeFactory
Throws:
java.lang.IllegalArgumentException
java.io.IOException

createNamedTree

public hep.aida.ITree createNamedTree(java.lang.String name,
                                      java.lang.String storeName,
                                      java.lang.String storeType,
                                      int mode)
                               throws java.lang.IllegalArgumentException,
                                      java.io.IOException
Specified by:
createNamedTree in interface hep.aida.ITreeFactory
Throws:
java.lang.IllegalArgumentException
java.io.IOException

createNamedTree

public hep.aida.ITree createNamedTree(java.lang.String name,
                                      java.lang.String storeName,
                                      java.lang.String storeType,
                                      int mode,
                                      java.lang.String options)
                               throws java.lang.IllegalArgumentException,
                                      java.io.IOException
Specified by:
createNamedTree in interface hep.aida.ITreeFactory
Throws:
java.lang.IllegalArgumentException
java.io.IOException


jHepWork 1.7 (C) Chekanov