net.sourceforge.cilib.boa.bee
Class OnlookerBee
java.lang.Object
net.sourceforge.cilib.entity.AbstractEntity
net.sourceforge.cilib.boa.bee.AbstractBee
net.sourceforge.cilib.boa.bee.OnlookerBee
- All Implemented Interfaces:
- Serializable, Comparable<Entity>, HoneyBee, CandidateSolution, Entity, Cloneable
public class OnlookerBee
- extends AbstractBee
- implements HoneyBee
Represents an onlooker bee in the hive.
- Author:
- Andrich
- See Also:
- Serialized Form
Method Summary |
OnlookerBee |
getClone()
Make a clone of the Entity the exact semantics of the clone method will be defined by the classes
that implements this interface. |
void |
updatePosition()
Updates the position of the bee based on the neighboring nectar content. |
Methods inherited from class net.sourceforge.cilib.entity.AbstractEntity |
equals, getBestFitness, getCandidateSolution, getFitness, getFitnessCalculator, getId, getProperties, hashCode, setCandidateSolution, setFitnessCalculator, setProperties |
Methods inherited from interface net.sourceforge.cilib.entity.Entity |
calculateFitness, calculateFitness, compareTo, getBestFitness, getCandidateSolution, getDimension, getFitnessCalculator, getId, getProperties, initialise, reinitialise, setCandidateSolution, setProperties |
OnlookerBee
public OnlookerBee()
- Default constructor.
OnlookerBee
public OnlookerBee(AbstractBee bee)
OnlookerBee
public OnlookerBee(OnlookerBee copy)
- Copy constructor. Creates a copy of the provided instance.
- Parameters:
copy
- reference that is deep copied.
getClone
public OnlookerBee getClone()
- Make a clone of the Entity the exact semantics of the clone method will be defined by the classes
that implements this interface.
- Specified by:
getClone
in interface HoneyBee
- Specified by:
getClone
in interface Entity
- Specified by:
getClone
in interface Cloneable
- Specified by:
getClone
in class AbstractBee
- Returns:
- the cloned object
- See Also:
Object.clone()
updatePosition
public void updatePosition()
- Updates the position of the bee based on the neighboring nectar content.
- Specified by:
updatePosition
in interface HoneyBee
- Specified by:
updatePosition
in class AbstractBee
Copyright © 2009 CIRG. All Rights Reserved.