|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
TraversalHandler receives messages from a traverser
indicating the completion of various stages of its traversal algorithm.
The order of events in this interface is important and reflects both the
structure of the AtomGraph being traversed and the traversal
algorithm.
Separating the implementation of traversal algorithms from the processing
of traversal events maximizes the reusability of TraversalHandlers
and traversals.
The design and use of TraversalHandler are analogous to those
of the SAX ContentHandler interface.
TraversalHandler is similar in use to the Strategy
design pattern and similar in intent to the Template Method pattern.
| Method Summary | |
boolean |
abortTraversal()
Implement this method to enable a traversal algorithm to be aborted. |
void |
atomPairTraversed(AtomPair pair)
Implement this method to be notified that traversal of
pair has just been completed. |
void |
atomTraversed(Atom atom)
Implement this method to be notified that traversal of
atom has just been completed. |
void |
traversalFinished(AtomGraph graph)
Implement this method to be notified that traversal of graph
is finished. |
void |
traversalStarted(AtomGraph graph)
Implement this method to be notified that traversal of graph
has started. |
| Method Detail |
public void traversalStarted(AtomGraph graph)
graph
has started.
graph - the AtomGraph that will be traversedpublic void traversalFinished(AtomGraph graph)
graph
is finished.
graph - the AtomGraph whose traversal was completedpublic void atomTraversed(Atom atom)
atom has just been completed.
atom - the Atom that was just traversedpublic void atomPairTraversed(AtomPair pair)
pair has just been completed.
pair - the AtomPair that was just traversedpublic boolean abortTraversal()
true if traversal should be aborted, or
false otherwise
|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||