|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.algorithm.initialisation.PopulationInitialisationStrategy
public abstract class PopulationInitialisationStrategy
Interface describing the manner in which populations are initialised.
Field Summary | |
---|---|
protected int |
entityNumber
|
Constructor Summary | |
---|---|
PopulationInitialisationStrategy()
|
Method Summary | |
---|---|
abstract PopulationInitialisationStrategy |
getClone()
Create a cloned copy of the current object and return it. |
int |
getEntityNumber()
Get the number of entities specified to be created by the InitialisationStrategy . |
abstract Entity |
getEntityType()
Get the current entity type. |
abstract void |
initialise(Topology<? extends Entity> topology,
OptimisationProblem problem)
Initialise the Entity collection based on the given
Topology and Problem. |
void |
setEntityNumber(int entityNumber)
Set the number of entities that are required. |
abstract void |
setEntityType(Entity entity)
Set the entity type to use. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int entityNumber
Constructor Detail |
---|
public PopulationInitialisationStrategy()
Method Detail |
---|
public abstract PopulationInitialisationStrategy getClone()
getClone
in interface Cloneable
Object.clone()
public void setEntityNumber(int entityNumber)
entityNumber
- The number of entities to setpublic abstract void setEntityType(Entity entity)
entity
- The entity type to use.public abstract Entity getEntityType()
public abstract void initialise(Topology<? extends Entity> topology, OptimisationProblem problem)
Entity
collection based on the given
Topology and Problem.
topology
- The topology to initialise with Entity objectsproblem
- The Problem to based the initialisation onpublic int getEntityNumber()
InitialisationStrategy
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |