net.sf.myra.antree
Class Graph.Entry

java.lang.Object
  extended by net.sf.myra.antree.Graph.Entry
Enclosing class:
Graph

public static class Graph.Entry
extends java.lang.Object

This class is used as the key of an entry in the pheromone matrix.


Field Summary
static Graph.Entry ROOT
          The Id instance representing the start of the graph.
 
Method Summary
 int getIndex()
          Returns the index of this entry in the pheromone matrix.
 long hits()
          Returns the number of times that this id was used.
 void increment()
          Increments the number of hits by one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROOT

public static final Graph.Entry ROOT
The Id instance representing the start of the graph.

Method Detail

getIndex

public int getIndex()
Returns the index of this entry in the pheromone matrix.

Returns:
the index of this entry in the pheromone matrix.

hits

public long hits()
Returns the number of times that this id was used.

Returns:
the number of times that this id was used.

increment

public void increment()
Increments the number of hits by one.



Copyright © 2013. All Rights Reserved.