|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--ants.messor.PheromoneEntry
Data structure containing the identifier of a nest and the load associated to it.
| Constructor Summary | |
PheromoneEntry(NestId id,
int load,
int time)
|
|
| Method Summary | |
int |
compareTo(Object o2)
|
boolean |
equals(Object obj)
|
int |
getLoad()
Return the load of the nest contained in this entry. |
NestId |
getNestId()
Return the identifier of the nest contained in this entry. |
int |
getTime()
Return the time in which this entry has been inserted in the pheromone table. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PheromoneEntry(NestId id,
int load,
int time)
| Method Detail |
public NestId getNestId()
public int getLoad()
public int getTime()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic int compareTo(Object o2)
compareTo in interface Comparable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||