FreeHEP API
Version v1.2.2

hep.graphics.heprep.corba
Class HepRepInstanceTreeAdapter

java.lang.Object
  |
  +--hep.graphics.heprep.corba.HepRepInstanceTreeAdapter
All Implemented Interfaces:
HepRepInstanceTree, HepRepTreeID

public class HepRepInstanceTreeAdapter
extends Object
implements HepRepInstanceTree

Version:
$Id: HepRepInstanceTreeAdapter.java,v 1.15 2003/12/04 23:25:40 duns Exp $
Author:
Mark Donszelmann

Field Summary
static String cvsId
           
 
Constructor Summary
HepRepInstanceTreeAdapter(HepRep heprep, HepRepInstanceTree hepRepInstanceTree)
           
 
Method Summary
 void addInstance(HepRepInstance instance)
          Adds an instance to this instancetree.
 void addInstanceTree(HepRepTreeID instanceTree)
          Adds a related instance tree to this instancetree.
 HepRepInstanceTree copy(HepRepTypeTree typeTree)
          Returns a deep copy of this instancetree.
 HepRepInstanceTree copy(HepRepTypeTree typeTree, HepRepSelectFilter filter)
          Returns a deep copy of this instancetree.
 boolean equals(Object o)
           
 List getInstances()
          Returns a collection of instances.
 Set getInstanceTrees()
          Returns a collection of associated instance trees.
 String getName()
          Returns the name of this treeID.
 String getQualifier()
          Returns the qualifier that qualifies the relation that this treeID has with what it refers to.
 HepRepTreeID getTypeTree()
          Returns the associated typetree.
 String getVersion()
          Returns the version of this treeID.
 int hashCode()
           
 void overlay(HepRepInstanceTree instanceTree)
          Overlays the instance tree on the current tree.
 void removeInstance(HepRepInstance instance)
          Removes an instance from this instancetree.
 void setQualifier(String qualifier)
          Sets the qualifier that qualifies the relation that this treeID has with what it refers to.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

cvsId

public static final String cvsId
See Also:
Constant Field Values
Constructor Detail

HepRepInstanceTreeAdapter

public HepRepInstanceTreeAdapter(HepRep heprep,
                                 HepRepInstanceTree hepRepInstanceTree)
Method Detail

overlay

public void overlay(HepRepInstanceTree instanceTree)
Description copied from interface: HepRepInstanceTree
Overlays the instance tree on the current tree. The list of instances of the instanceTree has to be the same as the current tree.

Specified by:
overlay in interface HepRepInstanceTree

copy

public HepRepInstanceTree copy(HepRepTypeTree typeTree)
                        throws CloneNotSupportedException
Description copied from interface: HepRepInstanceTree
Returns a deep copy of this instancetree.

Specified by:
copy in interface HepRepInstanceTree
Returns:
copy of this instancetree.
Throws:
CloneNotSupportedException - if copying is not possible.

copy

public HepRepInstanceTree copy(HepRepTypeTree typeTree,
                               HepRepSelectFilter filter)
                        throws CloneNotSupportedException
Description copied from interface: HepRepInstanceTree
Returns a deep copy of this instancetree.

Specified by:
copy in interface HepRepInstanceTree
Parameters:
filter - to filter the instances.
Returns:
copy of this instancetree.
Throws:
CloneNotSupportedException - if copying is not possible.

getQualifier

public String getQualifier()
Description copied from interface: HepRepTreeID
Returns the qualifier that qualifies the relation that this treeID has with what it refers to.

Specified by:
getQualifier in interface HepRepTreeID
Returns:
qualifier.

setQualifier

public void setQualifier(String qualifier)
Description copied from interface: HepRepTreeID
Sets the qualifier that qualifies the relation that this treeID has with what it refers to.

Specified by:
setQualifier in interface HepRepTreeID
Parameters:
qualifier - to be set.

getName

public String getName()
Description copied from interface: HepRepTreeID
Returns the name of this treeID.

Specified by:
getName in interface HepRepTreeID
Returns:
name of treeID.

getVersion

public String getVersion()
Description copied from interface: HepRepTreeID
Returns the version of this treeID.

Specified by:
getVersion in interface HepRepTreeID
Returns:
version of treeID.

getInstances

public List getInstances()
Description copied from interface: HepRepInstanceTree
Returns a collection of instances.

Specified by:
getInstances in interface HepRepInstanceTree
Returns:
collection of HepRepInstances.

addInstance

public void addInstance(HepRepInstance instance)
                 throws UnsupportedOperationException
Description copied from interface: HepRepInstanceTree
Adds an instance to this instancetree.

Specified by:
addInstance in interface HepRepInstanceTree
Parameters:
instance - to be added.
UnsupportedOperationException

addInstanceTree

public void addInstanceTree(HepRepTreeID instanceTree)
                     throws UnsupportedOperationException
Description copied from interface: HepRepInstanceTree
Adds a related instance tree to this instancetree.

Specified by:
addInstanceTree in interface HepRepInstanceTree
Parameters:
instanceTree - related instancetree.
UnsupportedOperationException

removeInstance

public void removeInstance(HepRepInstance instance)
                    throws UnsupportedOperationException
Description copied from interface: HepRepInstanceTree
Removes an instance from this instancetree.

Specified by:
removeInstance in interface HepRepInstanceTree
Parameters:
instance - to be removed.
UnsupportedOperationException

getTypeTree

public HepRepTreeID getTypeTree()
Description copied from interface: HepRepInstanceTree
Returns the associated typetree.

Specified by:
getTypeTree in interface HepRepInstanceTree
Returns:
TreeID of the associated typetree.

getInstanceTrees

public Set getInstanceTrees()
Description copied from interface: HepRepInstanceTree
Returns a collection of associated instance trees.

Specified by:
getInstanceTrees in interface HepRepInstanceTree
Returns:
collection of HepRepTreeIDs.

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

FreeHEP API
Version v1.2.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.