net.sourceforge.cilib.entity.visitor
Class TopologyVisitor
java.lang.Object
net.sourceforge.cilib.container.visitor.Visitor<Topology<? extends Entity>>
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
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 |
currentAlgorithm
protected Algorithm currentAlgorithm
distanceMeasure
protected DistanceMeasure distanceMeasure
TopologyVisitor
public TopologyVisitor()
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.