net.sourceforge.cilib.entity.visitor
Class TopologyVisitor

java.lang.Object
  extended by net.sourceforge.cilib.container.visitor.Visitor<Topology<? extends Entity>>
      extended by net.sourceforge.cilib.entity.visitor.TopologyVisitor
Direct Known Subclasses:
ClosestEntityVisitor, DiameterVisitor, RadiusVisitor, SpatialRadiusVisitor

public abstract class TopologyVisitor
extends Visitor<Topology<? extends Entity>>

Base class for all visitor instances that visit an entire Topology at once. These type of visitors are generally assocaited with the calculation of topology related information, such as diameter and radius calculations of the provided topologies.

Author:
gpampara

Field Summary
protected  Algorithm currentAlgorithm
           
protected  DistanceMeasure distanceMeasure
           
 
Constructor Summary
TopologyVisitor()
           
 
Method Summary
 Algorithm getCurrentAlgorithm()
           
 DistanceMeasure getDistanceMeasure()
           
abstract  Object getResult()
          Get the result of the visitor after it has performed the visit() action.
 void setCurrentAlgorithm(Algorithm currentAlgorithm)
           
 void setDistanceMeasure(DistanceMeasure distanceMeasure)
           
abstract  void visit(Topology<? extends Entity> topology)
          Perfrom the visit operation on the provided Topology.
 
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
 

Field Detail

currentAlgorithm

protected Algorithm currentAlgorithm

distanceMeasure

protected DistanceMeasure distanceMeasure
Constructor Detail

TopologyVisitor

public TopologyVisitor()
Method Detail

visit

public abstract void visit(Topology<? extends Entity> topology)
Perfrom the visit operation on the provided Topology.

Specified by:
visit in class Visitor<Topology<? extends Entity>>
Parameters:
topology - The Topology to visit.

getResult

public abstract Object getResult()
Get the result of the visitor after it has performed the visit() action.

Returns:
The result of the visit()

getDistanceMeasure

public DistanceMeasure getDistanceMeasure()

setDistanceMeasure

public void setDistanceMeasure(DistanceMeasure distanceMeasure)

getCurrentAlgorithm

public Algorithm getCurrentAlgorithm()

setCurrentAlgorithm

public void setCurrentAlgorithm(Algorithm currentAlgorithm)


Copyright © 2009 CIRG. All Rights Reserved.