|
||||||||||
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 net.sourceforge.cilib.algorithm.initialisation.ClonedPopulationInitialisationStrategy
public class ClonedPopulationInitialisationStrategy
Create a collection of entities
by cloning the given prototype Entity
.
Field Summary |
---|
Fields inherited from class net.sourceforge.cilib.algorithm.initialisation.PopulationInitialisationStrategy |
---|
entityNumber |
Constructor Summary | |
---|---|
ClonedPopulationInitialisationStrategy()
Create an instance of the ClonedPopulationInitialisationStrategy . |
|
ClonedPopulationInitialisationStrategy(ClonedPopulationInitialisationStrategy copy)
Copy constructor. |
Method Summary | |
---|---|
ClonedPopulationInitialisationStrategy |
getClone()
Create a cloned copy of the current object and return it. |
Entity |
getEntityType()
Get the entity that has been defined as the prototype to for the copies. |
void |
initialise(Topology topology,
OptimisationProblem problem)
Perform the required initialisation, using the provided Topology and Problem. |
void |
setEntityType(Entity entityType)
Set the prototype entity for the copy process. |
Methods inherited from class net.sourceforge.cilib.algorithm.initialisation.PopulationInitialisationStrategy |
---|
getEntityNumber, setEntityNumber |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClonedPopulationInitialisationStrategy()
ClonedPopulationInitialisationStrategy
.
public ClonedPopulationInitialisationStrategy(ClonedPopulationInitialisationStrategy copy)
copy
- The instance to copy.Method Detail |
---|
public ClonedPopulationInitialisationStrategy getClone()
getClone
in interface Cloneable
getClone
in class PopulationInitialisationStrategy
Object.clone()
public void initialise(Topology topology, OptimisationProblem problem)
initialise
in class PopulationInitialisationStrategy
topology
- The given Topology to use in initialisation.problem
- The Problem to use in the initialisation of the topology.
InitialisationException
- if the initialisation cannot take place.public void setEntityType(Entity entityType)
setEntityType
in class PopulationInitialisationStrategy
entityType
- The Entity
to use for the cloning process.public Entity getEntityType()
getEntityType
in class PopulationInitialisationStrategy
Entity
.ClonedPopulationInitialisationStrategy#getPrototypeEntity()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |