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

java.lang.Object
  extended by net.sourceforge.cilib.container.visitor.Visitor<E>
Type Parameters:
E - The type object.
Direct Known Subclasses:
ParticleVisitor, PrePostVisitor, ProblemVisitor, TopologyVisitor

public abstract class Visitor<E>
extends Object

Abstract class defining the general structure of a Visitor.

Author:
Gary Pampara

Constructor Summary
protected Visitor()
          Create the Visitor instance.
 
Method Summary
 boolean isDone()
          Determine if the visitor has completed its visit operation.
abstract  void visit(E o)
          Visit the provided object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Visitor

protected Visitor()
Create the Visitor instance.

Method Detail

visit

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

Parameters:
o - The object to visit.

isDone

public boolean isDone()
Determine if the visitor has completed its visit operation.

Returns:
true if the visit operation is complete, false otherwise.


Copyright © 2009 CIRG. All Rights Reserved.