net.sourceforge.cilib.boa.bee
Class OnlookerBee

java.lang.Object
  extended by net.sourceforge.cilib.entity.AbstractEntity
      extended by net.sourceforge.cilib.boa.bee.AbstractBee
          extended by 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

Field Summary
 
Fields inherited from class net.sourceforge.cilib.boa.bee.AbstractBee
dimension, positionUpdateStrategy, targetSelectionStrategy
 
Constructor Summary
OnlookerBee()
          Default constructor.
OnlookerBee(AbstractBee bee)
           
OnlookerBee(OnlookerBee copy)
          Copy constructor.
 
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.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

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.
Method Detail

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.