net.sourceforge.cilib.problem.boundaryconstraint
Class PerElementReinitialisation

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

public class PerElementReinitialisation
extends ReinitialisationBoundary

Reinitialise each element within the provided Type element if it is no longer within the valid search space. Each element violating the condition will be reinitilaised witin the domain of the problem (search space).

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

Constructor Summary
PerElementReinitialisation()
           
 
Method Summary
 void enforce(Entity entity)
          Enforce the defined boundary constraint on the provided Entity.
 
Methods inherited from class net.sourceforge.cilib.problem.boundaryconstraint.ReinitialisationBoundary
getClone
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerElementReinitialisation

public PerElementReinitialisation()
Method Detail

enforce

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

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


Copyright © 2009 CIRG. All Rights Reserved.