FreeHEP API
Version v1.2

hep.graphics.heprep
Interface HepRepTypeTree

All Superinterfaces:
HepRepTreeID
All Known Implementing Classes:
DefaultHepRepTypeTree, HepRepTypeTreeAdapter, HepRepTypeTreeAdapter, StreamerHepRepTypeTree

public interface HepRepTypeTree
extends HepRepTreeID

HepRepTypeTree interface.

Author:
Mark Donszelmann

Method Summary
 void addType(HepRepType type)
          Adds a type to this typetree.
 HepRepTypeTree copy(HepRep heprep)
          Returns a deep copy of this typetree.
 Collection getTypes()
          Returns a collection of all types in this tree.
 
Methods inherited from interface hep.graphics.heprep.HepRepTreeID
copy, getName, getQualifier, getVersion, setQualifier
 

Method Detail

addType

public void addType(HepRepType type)
             throws IOException
Adds a type to this typetree.

Parameters:
type - to be added.
Throws:
IOException - only if written immediatelty to a stream.

getTypes

public Collection getTypes()
Returns a collection of all types in this tree.

Returns:
collection of HepRepTypes.

copy

public HepRepTypeTree copy(HepRep heprep)
                    throws CloneNotSupportedException
Returns a deep copy of this typetree.

Parameters:
heprep - top-level heprep. (Not sure if this is necessary).
Returns:
copy of this typetree.
Throws:
CloneNotSupportedException - if copying is not possible.

FreeHEP API
Version v1.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.