net.sourceforge.cilib.container.visitor
Class InOrderVisitorDecorator<E>

java.lang.Object
  extended by net.sourceforge.cilib.container.visitor.Visitor<E>
      extended by net.sourceforge.cilib.container.visitor.PrePostVisitor<E>
          extended by net.sourceforge.cilib.container.visitor.InOrderVisitorDecorator<E>
Type Parameters:
E - The type element.

public class InOrderVisitorDecorator<E>
extends PrePostVisitor<E>

Simple decorator class that wraps the needed Visitor to make it compatible with In-Order Traversals in the Containers defined.

Author:
Gary Pampara

Constructor Summary
InOrderVisitorDecorator(Visitor<E> v)
           
 
Method Summary
 void visit(E o)
          Visit the provided object.
 
Methods inherited from class net.sourceforge.cilib.container.visitor.PrePostVisitor
postVisit, preVisit
 
Methods inherited from class net.sourceforge.cilib.container.visitor.Visitor
isDone
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InOrderVisitorDecorator

public InOrderVisitorDecorator(Visitor<E> v)
Method Detail

visit

public void visit(E o)
Visit the provided object.

Overrides:
visit in class PrePostVisitor<E>
Parameters:
o - The object to visit.


Copyright © 2009 CIRG. All Rights Reserved.