|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.hantminer.Species
public class Species
This class represents an ant colony
Constructor Summary | |
---|---|
Species(net.sf.myra.framework.PheromoneUpdater updater,
net.sf.myra.framework.HeuristicInformation information,
net.sf.myra.framework.TrailFactory factory)
Default constructor. |
Method Summary | |
---|---|
net.sf.myra.framework.Colony |
getColony()
Returns the colony instance associated. |
void |
initialize()
Initializes the colony. |
void |
iterate()
Creates ant trails. |
void |
update(net.sf.myra.framework.Trail trail)
Updates the pheromone trail represented by the specified trail. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Species(net.sf.myra.framework.PheromoneUpdater updater, net.sf.myra.framework.HeuristicInformation information, net.sf.myra.framework.TrailFactory factory)
updater
- the pheromone updater instance.factory
- the trail factory instance.Method Detail |
---|
public void initialize()
public void iterate()
public void update(net.sf.myra.framework.Trail trail)
trail
- the trail used to update the pheromone.public net.sf.myra.framework.Colony getColony()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |