org.vizzini.util.tree
Interface IVisitable

All Known Subinterfaces:
IFunction, INode, ITerminal, ITreeNode
All Known Implementing Classes:
AbsoluteValue, AbstractAntTerminal, AbstractArithmeticFunction, AbstractBooleanFunction, AbstractComparisonFunction, AbstractFunction, AbstractMathematicFunction, AbstractNode, AbstractSequenceFunction, AbstractTerminal, AbstractTreeNode, Add, And, ConstantDoubleTerminal, ConstantIntTerminal, DefaultTerminal, DefaultTreeNode, Divide, GreaterThan, GreaterThanDouble, GridBoardEvaluatorTerminal, If, IfFoodAheadFunction, InputTerminal, LeftTerminal, MoveTerminal, Multiply, Not, Or, RightTerminal, Sequence1Function, Sequence2Function, Sequence3Function, StateVariableTerminal, Subtract

public interface IVisitable

Defines methods required by visitable objects.

Since:
v0.3
Version:
v0.3
Author:
Jeffrey M. Thompson

Method Summary
 void acceptBreadthFirst(IVisitor visitor)
          Accept the given visitor in a breadth first manner.
 void acceptDepthFirst(IVisitor visitor)
          Accept the given visitor in a depth first manner.
 

Method Detail

acceptBreadthFirst

void acceptBreadthFirst(IVisitor visitor)
Accept the given visitor in a breadth first manner.

Parameters:
visitor - Visitor.
Since:
v0.3

acceptDepthFirst

void acceptDepthFirst(IVisitor visitor)
Accept the given visitor in a depth first manner.

Parameters:
visitor - Visitor.
Since:
v0.3


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02