net.sourceforge.cilib.algorithm.initialisation
Class SpecializedPopluationInitialisationStrategy

java.lang.Object
  extended by net.sourceforge.cilib.algorithm.initialisation.PopulationInitialisationStrategy
      extended by net.sourceforge.cilib.algorithm.initialisation.SpecializedPopluationInitialisationStrategy
All Implemented Interfaces:
Serializable, Cloneable

public class SpecializedPopluationInitialisationStrategy
extends PopulationInitialisationStrategy

Initialise a specialised collection of entity objects.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.cilib.algorithm.initialisation.PopulationInitialisationStrategy
entityNumber
 
Constructor Summary
SpecializedPopluationInitialisationStrategy()
          Create an instance of SpecializedPopluationInitialisationStrategy.
SpecializedPopluationInitialisationStrategy(SpecializedPopluationInitialisationStrategy copy)
          Create a copy of the provided instance.
 
Method Summary
 SpecializedPopluationInitialisationStrategy getClone()
          Create a cloned copy of the current object and return it.
 Entity getEntityType()
          Get the current entity type.
 void initialise(Topology topology, OptimisationProblem problem)
          Initialise the Entity collection based on the given Topology and Problem.
 void setEntityType(Entity entity)
          Set the entity type to use.
 
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

SpecializedPopluationInitialisationStrategy

public SpecializedPopluationInitialisationStrategy()
Create an instance of SpecializedPopluationInitialisationStrategy.


SpecializedPopluationInitialisationStrategy

public SpecializedPopluationInitialisationStrategy(SpecializedPopluationInitialisationStrategy copy)
Create a copy of the provided instance.

Parameters:
copy - The instance to copy.
Method Detail

getClone

public SpecializedPopluationInitialisationStrategy getClone()
Create a cloned copy of the current object and return it. In general the created copy will be a deep copy of the provided instance. As a result this operation an be quite expensive if used incorrectly.

Specified by:
getClone in interface Cloneable
Specified by:
getClone in class PopulationInitialisationStrategy
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

getEntityType

public Entity getEntityType()
Get the current entity type.

Specified by:
getEntityType in class PopulationInitialisationStrategy
Returns:
The entity being used.

initialise

public void initialise(Topology topology,
                       OptimisationProblem problem)
Initialise the Entity collection based on the given Topology and Problem.

Specified by:
initialise in class PopulationInitialisationStrategy
Parameters:
topology - The topology to initialise with Entity objects
problem - The Problem to based the initialisation on

setEntityType

public void setEntityType(Entity entity)
Set the entity type to use.

Specified by:
setEntityType in class PopulationInitialisationStrategy
Parameters:
entity - The entity type to use.


Copyright © 2009 CIRG. All Rights Reserved.