View Javadoc

1   package org.lcsim.detector;
2   
3   /**
4    * Generic interface for the Visitor pattern.
5    * 
6    * @author Jeremy McCormick <jeremym@slac.stanford.edu> 
7    */
8   public interface IVisitor<T>
9   {
10      /**
11       * Perform some action on a node.
12       * 
13       * @param object The object to be visited.
14       */
15  	public void visit(T object);
16      
17      /**
18       * True if the traversal should stop.
19       * 
20       * @return True if the traversal should stop.
21       */
22      public boolean isDone();
23  }