net.sourceforge.cilib.problem.boundaryconstraint
Interface BoundaryConstraint

All Superinterfaces:
Cloneable, Serializable
All Known Implementing Classes:
BouncingBoundaryConstraint, ClampingBoundaryConstraint, DeflectionBoundaryConstraint, NearestBoundaryConstraint, PerElementReinitialisation, PeriodicBoundaryConstraint, RandomBoundaryConstraint, ReinitialisationBoundary, UnconstrainedBoundary

public interface BoundaryConstraint
extends Cloneable

Enforce predefined boundary constraints on Entity instances that are operating in the current search space. Various strategies are available to enforce these boundary contraints on the provided Entity objects.


Method Summary
 void enforce(Entity entity)
          Enforce the defined boundary constraint on the provided Entity.
 BoundaryConstraint getClone()
          Create a cloned copy of the current object and return it.
 

Method Detail

getClone

BoundaryConstraint 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 Cloneable
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

enforce

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

Parameters:
entity - The Entity with which the boundary is to be enforced.


Copyright © 2009 CIRG. All Rights Reserved.