net.sourceforge.cilib.problem.boundaryconstraint
Class ReinitialisationBoundary

java.lang.Object
  extended by net.sourceforge.cilib.problem.boundaryconstraint.ReinitialisationBoundary
All Implemented Interfaces:
Serializable, BoundaryConstraint, Cloneable
Direct Known Subclasses:
PerElementReinitialisation

public class ReinitialisationBoundary
extends Object
implements BoundaryConstraint

Once the entity has over shot the search space boundaries, re-initialise the Entity once again to be witihin the search space of the problem at a random position.

See Also:
Types.isInsideBounds(net.sourceforge.cilib.type.types.Type), Serialized Form

Constructor Summary
ReinitialisationBoundary()
           
 
Method Summary
 void enforce(Entity entity)
          Enforce the defined boundary constraint on the provided Entity.
 ReinitialisationBoundary getClone()
          Create a cloned copy of the current object and return it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReinitialisationBoundary

public ReinitialisationBoundary()
Method Detail

getClone

public ReinitialisationBoundary 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 BoundaryConstraint
Specified by:
getClone in interface Cloneable
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

enforce

public void enforce(Entity entity)
Enforce the defined boundary constraint on the provided Entity.

Specified by:
enforce in interface BoundaryConstraint
Parameters:
entity - The Entity with which the boundary is to be enforced.


Copyright © 2009 CIRG. All Rights Reserved.