com.sri.emo.commandline.defaults
Class InMemoryNodeTracker

java.lang.Object
  extended by com.sri.emo.commandline.defaults.InMemoryNodeTracker
All Implemented Interfaces:
NodeTracker

public class InMemoryNodeTracker
extends Object
implements NodeTracker

Stores all ids into an internal TreeMap.

Author:
Michael Rimov

Constructor Summary
InMemoryNodeTracker()
           
 
Method Summary
 boolean isObjectVisited(DBObject dbobj)
          Checks to see if a given node has been visited.
 void markObjectAsVisited(DBObject dbobj)
          Adds the dbobject class and id into internal storage that prevents duplication.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryNodeTracker

public InMemoryNodeTracker()
Method Detail

isObjectVisited

public boolean isObjectVisited(DBObject dbobj)
                        throws DBException
Description copied from interface: NodeTracker
Checks to see if a given node has been visited.

Specified by:
isObjectVisited in interface NodeTracker
Returns:
true if object was visited
Throws:
DBException

markObjectAsVisited

public void markObjectAsVisited(DBObject dbobj)
                         throws DBException
Description copied from interface: NodeTracker
Adds the dbobject class and id into internal storage that prevents duplication.

Specified by:
markObjectAsVisited in interface NodeTracker
Throws:
DBException


Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.