net.sourceforge.cilib.boa.bee
Interface HoneyBee

All Superinterfaces:
Cloneable, Comparable<Entity>, Entity, Serializable
All Known Implementing Classes:
AbstractBee, OnlookerBee, WorkerBee

public interface HoneyBee
extends Entity

Super interface for all types of bees in the artificial bee algorithm.

Author:
Andrich

Method Summary
 HoneyBee getClone()
          Make a clone of the Entity the exact semantics of the clone method will be defined by the classes that implements this interface.
 Fitness getFitness()
          Returns the Entity fitness.
 Vector getPosition()
          Gets the bee's position (contents).
 BeePositionUpdateStrategy getPositionUpdateStrategy()
          Getter method for the position update strategy.
 void setPosition(Vector position)
          Sets the bee's position (contents).
 void updatePosition()
          Updates the position of the bee based on the neighboring nectar content.
 
Methods inherited from interface net.sourceforge.cilib.entity.Entity
calculateFitness, calculateFitness, compareTo, getBestFitness, getCandidateSolution, getDimension, getFitnessCalculator, getId, getProperties, initialise, reinitialise, setCandidateSolution, setProperties
 

Method Detail

getClone

HoneyBee 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 Cloneable
Specified by:
getClone in interface Entity
Returns:
the cloned object
See Also:
Object.clone()

getFitness

Fitness getFitness()
Returns the Entity fitness.

Specified by:
getFitness in interface Entity
Returns:
The Fitness of the Entity.

updatePosition

void updatePosition()
Updates the position of the bee based on the neighboring nectar content.


getPosition

Vector getPosition()
Gets the bee's position (contents).

Returns:
the position.

setPosition

void setPosition(Vector position)
Sets the bee's position (contents).

Parameters:
position - The value to set.

getPositionUpdateStrategy

BeePositionUpdateStrategy getPositionUpdateStrategy()
Getter method for the position update strategy.

Returns:
the position update strategy.


Copyright © 2009 CIRG. All Rights Reserved.