net.sourceforge.cilib.entity.operators.creation
Interface CreationStrategy

All Superinterfaces:
Cloneable, Operator, Serializable
All Known Implementing Classes:
RandCreationStrategy

public interface CreationStrategy
extends Operator

Creation operator definition. The manner in which new Entity instances are created is specified.


Method Summary
 Entity create(Entity targetEntity, Entity current, Topology<? extends Entity> topology)
          Create an Entity, based on the provided parameters.
 CreationStrategy getClone()
          Create a cloned copy of the current object and return it.
 
Methods inherited from interface net.sourceforge.cilib.entity.operators.Operator
performOperation
 

Method Detail

getClone

CreationStrategy getClone()
Description copied from interface: Operator
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 interface Operator
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

create

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.

Parameters:
targetEntity -
current -
topology -
Returns:


Copyright © 2009 CIRG. All Rights Reserved.