|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.pso.positionupdatestrategies.StandardPositionUpdateStrategy
public class StandardPositionUpdateStrategy
This is the normal position update as described by Kennedy and Eberhart.
Constructor Summary | |
---|---|
StandardPositionUpdateStrategy()
Create an new instance of StandardPositionUpdateStrategy . |
|
StandardPositionUpdateStrategy(StandardPositionUpdateStrategy copy)
Copy constructor. |
Method Summary | |
---|---|
StandardPositionUpdateStrategy |
getClone()
Clone the stategy by creating a new object with the same contents and values as the current object. |
void |
updatePosition(Particle particle)
Update the position of the Particle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardPositionUpdateStrategy()
StandardPositionUpdateStrategy
.
public StandardPositionUpdateStrategy(StandardPositionUpdateStrategy copy)
copy
- The instance to copy.Method Detail |
---|
public StandardPositionUpdateStrategy getClone()
getClone
in interface PositionUpdateStrategy
getClone
in interface Cloneable
Object.clone()
public void updatePosition(Particle particle)
updatePosition
in interface PositionUpdateStrategy
particle
- The Particle to perform the position update on.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |