|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
static String |
NAME
Identifier used in the configuration files |
Fields inherited from interface anthill.storage.Storage |
DOC_STORAGE, PHR_STORAGE, URL_STORAGE |
Method Summary | |
void |
addNest(NestId id,
int load)
Add the specified node and its associated load to the pheromone table. |
PheromoneEntry[] |
getEntryTable()
Add the nest identifiers contained in the nest to the set identified |
NestId |
getNextMaxNest(double deviation)
Returns the next nest to be followed, depending on some parameters and on the content of the storage. |
NestId |
getNextMinNest(double deviation)
Returns the next nest to be followed, depending on some parameters and on the content of the storage. |
NestId |
getRandomNest()
|
boolean |
isOverladed()
Returns true if the node is overloaded by ants, that have to be removed from the nest. |
boolean |
isUnderloaded()
If the number of visits is smaller than the minimum amount of visits to be received, returns the number of missing visits. |
void |
update(NestId local,
Neighbour[] nests)
|
void |
update(NestId local,
NestId[] nests,
int[] loads)
|
Methods inherited from interface anthill.util.Clearable |
clear |
Field Detail |
public static final String NAME
Method Detail |
public void addNest(NestId id, int load)
public NestId getNextMaxNest(double deviation)
public NestId getNextMinNest(double deviation)
public NestId getRandomNest()
public void update(NestId local, NestId[] nests, int[] loads)
public void update(NestId local, Neighbour[] nests)
public boolean isUnderloaded()
public boolean isOverladed()
public PheromoneEntry[] getEntryTable()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |