The Octet Molecular Representation Framework v0.8.2

net.sf.octet.traversal
Class BasicDepthTraverser

java.lang.Object
  extended bynet.sf.octet.traversal.BasicDepthTraverser
All Implemented Interfaces:
DepthTraverser

public class BasicDepthTraverser
extends java.lang.Object
implements DepthTraverser

A default implementation of the DepthTraverser interface. BasicDepthTraverser selects neighbors at branchpoint Atoms according to the order of iteration given by AtomGraph.iterateNeighbors .

Author:
Richard Apodaca

Nested Class Summary
 
Nested classes inherited from class net.sf.octet.traversal.DepthTraverser
DepthTraverser.Handler
 
Constructor Summary
BasicDepthTraverser()
          Constructs a fully functional BasicDepthTraverser.
 
Method Summary
 void traverse(AtomGraph graph, Atom root, DepthTraverser.Handler handler)
          Traverses graph starting from root while notifying Handler of traversal events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicDepthTraverser

public BasicDepthTraverser()
Constructs a fully functional BasicDepthTraverser.

Method Detail

traverse

public void traverse(AtomGraph graph,
                     Atom root,
                     DepthTraverser.Handler handler)
Description copied from interface: DepthTraverser
Traverses graph starting from root while notifying Handler of traversal events.

Specified by:
traverse in interface DepthTraverser
Parameters:
graph - the AtomGraph to traverse
root - the root Atom in graph to start from
handler - receives traversal events

The Octet Molecular Representation Framework v0.8.2