FreeHEP API
Version v1.2

hep.graphics.heprep
Interface HepRepIterator

All Superinterfaces:
Iterator
All Known Implementing Classes:
DefaultHepRepIterator

public interface HepRepIterator
extends Iterator

HepRepIterator interface.

Author:
Mark Donszelmann

Method Summary
 void addHepRepIteratorListener(HepRepIteratorListener listener)
          Adds a listener to be informed about attribute changes while iterating.
 HepRepAttValue getAttValue(String key)
          Returns the attValue for key at the current point of iteration.
 boolean hasNext()
          Signals if there is a next instance to iterate to.
 HepRepInstance nextInstance()
          Returns next instance.
 void removeHepRepIteratorListener(HepRepIteratorListener listener)
          Removes a listener.
 
Methods inherited from interface java.util.Iterator
next, remove
 

Method Detail

hasNext

public boolean hasNext()
Signals if there is a next instance to iterate to.

Specified by:
hasNext in interface Iterator
Returns:
true if next() can be called.

nextInstance

public HepRepInstance nextInstance()
Returns next instance.

Returns:
next HepRepInstance.

addHepRepIteratorListener

public void addHepRepIteratorListener(HepRepIteratorListener listener)
                               throws TooManyListenersException
Adds a listener to be informed about attribute changes while iterating.

Parameters:
listener - to be added.
TooManyListenersException

removeHepRepIteratorListener

public void removeHepRepIteratorListener(HepRepIteratorListener listener)
Removes a listener.

Parameters:
listener - to be removed.

getAttValue

public HepRepAttValue getAttValue(String key)
Returns the attValue for key at the current point of iteration.

Parameters:
key - name of tye attribute to be looked up.
Returns:
value associated to name at this point in the iteration.

FreeHEP API
Version v1.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.