anthill.nestor
Class LocalTrail.Pair

java.lang.Object
  |
  +--anthill.nestor.LocalTrail.Pair
Enclosing class:
LocalTrail

protected class LocalTrail.Pair
extends java.lang.Object

The Pair class is an inner class used to link objects in the hash table in a list.


Field Summary
protected  AntId ant
          Identifier of the ant which visited this nest
protected  NestId nest
          Identifier of the nest from which this nest has arrived
protected  LocalTrail.Pair next
          Next pair in the linked list
protected  LocalTrail.Pair prev
          Next pair in the linked list
protected  long time
          Creation time; used to detect when a link is stale
 
Constructor Summary
protected LocalTrail.Pair(AntId ant, NestId nest, LocalTrail.Pair prev)
          Initializing constructor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ant

protected AntId ant
Identifier of the ant which visited this nest

nest

protected NestId nest
Identifier of the nest from which this nest has arrived

next

protected LocalTrail.Pair next
Next pair in the linked list

prev

protected LocalTrail.Pair prev
Next pair in the linked list

time

protected long time
Creation time; used to detect when a link is stale
Constructor Detail

LocalTrail.Pair

protected LocalTrail.Pair(AntId ant,
                          NestId nest,
                          LocalTrail.Pair prev)
Initializing constructor