1
2
3
4
5
6
7
8
9
10
11 package com.sri.emo.commandline;
12
13 import com.jcorporate.expresso.core.db.DBException;
14 import com.jcorporate.expresso.core.dbobj.DBObject;
15
16 /***
17 * Tracks which nodes have been duplicated.
18 * @author Michael Rimov
19 *
20 */
21 public interface NodeTracker {
22
23 /***
24 * Checks to see if a given node has been visited.
25 * @return true if object was visited
26 */
27 boolean isObjectVisited(DBObject dbobj)throws DBException ;
28
29
30 /***
31 * Adds the dbobject class and id into internal storage that
32 * prevents duplication.
33 */
34 void markObjectAsVisited(DBObject dbobj)throws DBException ;
35
36 }