|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.pso.dynamic.responsestrategies.EnvironmentChangeResponseStrategy<E>
public abstract class EnvironmentChangeResponseStrategy<E extends PopulationBasedAlgorithm>
TODO: Complete this Javadoc.
Field Summary | |
---|---|
protected boolean |
hasMemory
|
Constructor Summary | |
---|---|
EnvironmentChangeResponseStrategy()
|
|
EnvironmentChangeResponseStrategy(EnvironmentChangeResponseStrategy<E> rhs)
|
Method Summary | |
---|---|
abstract EnvironmentChangeResponseStrategy<E> |
getClone()
Clone the EnvironmentChangeResponseStrategy object. |
boolean |
getHasMemory()
|
protected abstract void |
performReaction(E algorithm)
This is the method responsible for responding that should be overridden by sub-classes. |
void |
respond(E algorithm)
Respond to the environment change and ensure that the neighbourhood best entities are updated. |
void |
setHasMemory(boolean hasMemory)
|
protected void |
updateNeighbourhoodBestEntities(Topology<? extends Entity> topology)
TODO: The problem with this is that it is PSO specific. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean hasMemory
Constructor Detail |
---|
public EnvironmentChangeResponseStrategy()
public EnvironmentChangeResponseStrategy(EnvironmentChangeResponseStrategy<E> rhs)
Method Detail |
---|
public abstract EnvironmentChangeResponseStrategy<E> getClone()
getClone
in interface Cloneable
Object.clone()
public void respond(E algorithm)
algorithm
- some population based algorithm
protected abstract void performReaction(E algorithm)
algorithm
- protected void updateNeighbourhoodBestEntities(Topology<? extends Entity> topology)
particles
instead of entities
, because the Entity
class does not have the
notion of a neighbourhood best.
topology
- a topology of particles
:-(public boolean getHasMemory()
public void setHasMemory(boolean hasMemory)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |