com.sri.emo.commandline.defaults
Class InMemoryNodeTracker
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InMemoryNodeTracker
public InMemoryNodeTracker()
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.