net.sf.myra.hantminer
Class Species

java.lang.Object
  extended by net.sf.myra.hantminer.Species

public class Species
extends java.lang.Object

This class represents an ant colony

Version:
$Revision$ $Date:: $
Author:
Fernando Esteban Barril Otero

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

Species

public Species(net.sf.myra.framework.PheromoneUpdater updater,
               net.sf.myra.framework.HeuristicInformation information,
               net.sf.myra.framework.TrailFactory factory)
Default constructor.

Parameters:
updater - the pheromone updater instance.
factory - the trail factory instance.
Method Detail

initialize

public void initialize()
Initializes the colony.


iterate

public void iterate()
Creates ant trails.


update

public void update(net.sf.myra.framework.Trail trail)
Updates the pheromone trail represented by the specified trail.

Parameters:
trail - the trail used to update the pheromone.

getColony

public net.sf.myra.framework.Colony getColony()
Returns the colony instance associated.

Returns:
the colony instance associated.


Copyright © 2013. All Rights Reserved.