|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.entity.AbstractEntity net.sourceforge.cilib.boa.bee.AbstractBee net.sourceforge.cilib.boa.bee.WorkerBee
public class WorkerBee
A worker bee that forages for food and updates the hive information by dancing.
Field Summary |
---|
Fields inherited from class net.sourceforge.cilib.boa.bee.AbstractBee |
---|
dimension, positionUpdateStrategy, targetSelectionStrategy |
Constructor Summary | |
---|---|
WorkerBee()
Create a new instance with reasonable defaults set. |
|
WorkerBee(WorkerBee copy)
Copy constructor. |
Method Summary | |
---|---|
WorkerBee |
getClone()
Make a clone of the Entity the exact semantics of the clone method will be defined by the classes that implements this interface. |
ControlParameter |
getForageLimit()
Get the forage limit. |
void |
setForageLimit(ControlParameter forageLimit)
Set the forage limit. |
void |
updatePosition()
Updates the position of the bee based on the neighboring nectar content. |
Methods inherited from class net.sourceforge.cilib.boa.bee.AbstractBee |
---|
calculateFitness, calculateFitness, compareTo, getDimension, getPosition, getPositionUpdateStrategy, initialise, reinitialise, setPosition |
Methods inherited from class net.sourceforge.cilib.entity.AbstractEntity |
---|
equals, getBestFitness, getCandidateSolution, getFitness, getFitnessCalculator, getId, getProperties, hashCode, setCandidateSolution, setFitnessCalculator, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sourceforge.cilib.boa.bee.HoneyBee |
---|
getFitness, getPosition, getPositionUpdateStrategy, setPosition |
Methods inherited from interface net.sourceforge.cilib.entity.Entity |
---|
calculateFitness, calculateFitness, compareTo, getBestFitness, getCandidateSolution, getDimension, getFitnessCalculator, getId, getProperties, initialise, reinitialise, setCandidateSolution, setProperties |
Constructor Detail |
---|
public WorkerBee()
public WorkerBee(WorkerBee copy)
copy
- The isntance to copy.Method Detail |
---|
public WorkerBee getClone()
getClone
in interface HoneyBee
getClone
in interface Entity
getClone
in interface Cloneable
getClone
in class AbstractBee
Object.clone()
public void updatePosition()
updatePosition
in interface HoneyBee
updatePosition
in class AbstractBee
public ControlParameter getForageLimit()
public void setForageLimit(ControlParameter forageLimit)
forageLimit
- The limit to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |