|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.framework.Scheduler
public class Scheduler
This class represents the schedule of activities to evolve the colony of ants, in order to perform a search for solutions.
Field Summary | |
---|---|
protected DaemonAction |
action
The daemon action. |
protected StopCondition |
condition
The termination condition. |
protected Environment |
environment
The running environment. |
protected ObjectiveFunction |
function
The objective function used evaluate the ant trails (solutions). |
protected HeuristicInformation |
information
The heuristic information. |
protected LocalSearch |
search
The local search operator. |
protected PheromoneUpdater |
updater
The pheromone update policy. |
Constructor Summary | |
---|---|
Scheduler(Colony colony,
StopCondition condition,
ObjectiveFunction function,
PheromoneUpdater updater,
HeuristicInformation information)
Creates a new Scheduler instance. |
Method Summary | |
---|---|
protected void |
createSolutions()
Creates the ants' trails (solutions). |
protected void |
daemonActions()
Executes the daemon actions. |
DaemonAction |
getDaemonAction()
Returns the daemon action. |
LocalSearch |
getLocalSearch()
Returns the local search operator. |
PheromoneUpdater |
getPheromoneUpdater()
Returns the pheromone updater. |
protected void |
initialize()
Initialization step. |
void |
run()
Evolves the colony 'till the stop condition is reached. |
void |
setDaemonAction(DaemonAction action)
Sets the daemon action. |
void |
setLocalSearch(LocalSearch search)
Sets the local search operator. |
protected void |
updatePheromones()
Updates the pheromone values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected StopCondition condition
protected Environment environment
protected ObjectiveFunction function
protected LocalSearch search
protected DaemonAction action
protected PheromoneUpdater updater
protected HeuristicInformation information
Constructor Detail |
---|
public Scheduler(Colony colony, StopCondition condition, ObjectiveFunction function, PheromoneUpdater updater, HeuristicInformation information)
Scheduler
instance.
colony
- the colony of ants.condition
- the stop condition.function
- the objective function.updater
- the pheromone update policy.Method Detail |
---|
public void run()
protected void createSolutions()
protected void updatePheromones()
protected void daemonActions()
protected void initialize()
public LocalSearch getLocalSearch()
public PheromoneUpdater getPheromoneUpdater()
public void setLocalSearch(LocalSearch search)
search
- the local search operator to set.public DaemonAction getDaemonAction()
public void setDaemonAction(DaemonAction action)
action
- the daemon action to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |