net.sourceforge.cilib.entity.visitor
Class DiameterVisitor

java.lang.Object
  extended by net.sourceforge.cilib.container.visitor.Visitor<Topology<? extends Entity>>
      extended by net.sourceforge.cilib.entity.visitor.TopologyVisitor
          extended by net.sourceforge.cilib.entity.visitor.DiameterVisitor

public class DiameterVisitor
extends TopologyVisitor

Visitor to determine the size of the diameter of the provided Topology within the visit method.


Field Summary
 
Fields inherited from class net.sourceforge.cilib.entity.visitor.TopologyVisitor
currentAlgorithm, distanceMeasure
 
Constructor Summary
DiameterVisitor()
           
 
Method Summary
 Double getResult()
          Get the result of the visitor after it has performed the visit() action.
 void visit(Topology<? extends Entity> topology)
          Perfrom the visit operation on the provided Topology.
 
Methods inherited from class net.sourceforge.cilib.entity.visitor.TopologyVisitor
getCurrentAlgorithm, getDistanceMeasure, setCurrentAlgorithm, setDistanceMeasure
 
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

DiameterVisitor

public DiameterVisitor()
Method Detail

visit

public void visit(Topology<? extends Entity> topology)
Description copied from class: TopologyVisitor
Perfrom the visit operation on the provided Topology.

Specified by:
visit in class TopologyVisitor
Parameters:
topology - The Topology to visit.

getResult

public Double getResult()
Description copied from class: TopologyVisitor
Get the result of the visitor after it has performed the visit() action.

Specified by:
getResult in class TopologyVisitor
Returns:
The result of the visit()


Copyright © 2009 CIRG. All Rights Reserved.