|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.problem.boundaryconstraint.DeflectionBoundaryConstraint
public class DeflectionBoundaryConstraint
Particles that overstep the boundary get re-initialised to simulate a bouncing effect by flipping the velocity (multiplying it with -1.0).
Constructor Summary | |
---|---|
DeflectionBoundaryConstraint()
Create a new instance. |
|
DeflectionBoundaryConstraint(DeflectionBoundaryConstraint copy)
Create a copy of the provided instance. |
Method Summary | |
---|---|
void |
enforce(Entity entity)
Enforce the defined boundary constraint on the provided Entity. |
BoundaryConstraint |
getClone()
|
ControlParameter |
getVelocityDampingFactor()
Get the current velocity dampening factor. |
void |
setVelocityDampingFactor(ControlParameter velocityDampingFactor)
Set the control parameter to be used for the velocity damping factor . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeflectionBoundaryConstraint()
velocityDampingFactor
defaults to a
value of -1.0.
public DeflectionBoundaryConstraint(DeflectionBoundaryConstraint copy)
copy
- The instance to copy.Method Detail |
---|
public BoundaryConstraint getClone()
getClone
in interface BoundaryConstraint
getClone
in interface Cloneable
Object.clone()
public void enforce(Entity entity)
enforce
in interface BoundaryConstraint
entity
- The Entity with which the boundary is to be enforced.public ControlParameter getVelocityDampingFactor()
ControlParameter
representing the parameter.public void setVelocityDampingFactor(ControlParameter velocityDampingFactor)
velocity damping factor
.
velocityDampingFactor
- The ControlParameter
to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |