net.sourceforge.cilib.entity.operators.creation
Class RandCreationStrategy

java.lang.Object
  extended by net.sourceforge.cilib.entity.operators.creation.RandCreationStrategy
All Implemented Interfaces:
Serializable, CreationStrategy, Operator, Cloneable

public class RandCreationStrategy
extends Object
implements CreationStrategy

See Also:
Serialized Form

Constructor Summary
RandCreationStrategy()
          Create a new instance of CurrentToRandCreationStrategy.
RandCreationStrategy(RandCreationStrategy copy)
          Copy constructor.
 
Method Summary
 Entity create(Entity targetEntity, Entity current, Topology<? extends Entity> topology)
          Create an Entity, based on the provided parameters.
 RandCreationStrategy getClone()
          Create a cloned copy of the current object and return it.
 void performOperation(TopologyHolder holder)
          Perform the operator operation given the current TopologyHolder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandCreationStrategy

public RandCreationStrategy()
Create a new instance of CurrentToRandCreationStrategy.


RandCreationStrategy

public RandCreationStrategy(RandCreationStrategy copy)
Copy constructor. Create a copy of the provided instance.

Parameters:
copy - The instance to copy.
Method Detail

getClone

public RandCreationStrategy 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 CreationStrategy
Specified by:
getClone in interface Operator
Specified by:
getClone in interface Cloneable
Returns:
A copy of the current instance.
See Also:
Object.clone()

create

public Entity create(Entity targetEntity,
                     Entity current,
                     Topology<? extends Entity> topology)
Create an Entity, based on the provided parameters. TODO: this may need to be simplified in some way.

Specified by:
create in interface CreationStrategy
Returns:

performOperation

public void performOperation(TopologyHolder holder)
Perform the operator operation given the current TopologyHolder.

Specified by:
performOperation in interface Operator
Parameters:
holder - The TopologyHolder representing the required Topology instances.


Copyright © 2009 CIRG. All Rights Reserved.