net.sourceforge.cilib.problem.boundaryconstraint
Class PerElementReinitialisation
java.lang.Object
net.sourceforge.cilib.problem.boundaryconstraint.ReinitialisationBoundary
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
Method Summary |
void |
enforce(Entity entity)
Enforce the defined boundary constraint on the provided Entity. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PerElementReinitialisation
public PerElementReinitialisation()
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.