|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.boa.bee.ExplorerBee
public class ExplorerBee
Represents the explorer bee in the algorithm. To emulate the functionality of the explorer bee in the hive, a random search position is generated upon request if it is allowed. Keeps track of how many updates have occurred via numberOfUpdates and which iteration the previous update occurred.
Constructor Summary | |
---|---|
ExplorerBee()
Default constructor. |
|
ExplorerBee(ExplorerBee copy)
Copy constructor. |
Method Summary | |
---|---|
ExplorerBee |
getClone()
Create a cloned copy of the current object and return it. |
ControlParameter |
getExplorerBeeUpdateLimit()
|
Vector |
getNewPosition(Vector position)
Returns a new random position. |
boolean |
searchAllowed()
Verifies it is allowed for a worker bee to convert to an explorer bee. |
void |
setExplorerBeeUpdateLimit(ControlParameter explorerBeeUpdateLimit)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExplorerBee()
ExplorerBee
with reasonable
default values.
public ExplorerBee(ExplorerBee copy)
copy
- reference to explorer bee that deep copy is made of.Method Detail |
---|
public ExplorerBee getClone()
getClone
in interface Cloneable
Object.clone()
public boolean searchAllowed()
public Vector getNewPosition(Vector position)
position
- random position with same dimension and bounds as given position.
public ControlParameter getExplorerBeeUpdateLimit()
public void setExplorerBeeUpdateLimit(ControlParameter explorerBeeUpdateLimit)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |