net.sourceforge.cilib.problem.boundaryconstraint
Class ReinitialisationBoundary
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReinitialisationBoundary
public ReinitialisationBoundary()
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.