net.sourceforge.cilib.problem.changestrategy
Class NoChangeStrategy
java.lang.Object
net.sourceforge.cilib.problem.changestrategy.NoChangeStrategy
- All Implemented Interfaces:
- ChangeStrategy
public class NoChangeStrategy
- extends Object
- implements ChangeStrategy
Environmental change strategy for problems that does not allow
a change to occur.
Method Summary |
boolean |
shouldApply(Problem problem)
Do not change the search space of the provided problem instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoChangeStrategy
public NoChangeStrategy()
shouldApply
public boolean shouldApply(Problem problem)
- Do not change the search space of the provided problem instance. Leave
the search space intact.
This method simply returns false
and performs no actions.
- Specified by:
shouldApply
in interface ChangeStrategy
- Parameters:
problem
- The problem to be queried for change.
- Returns:
false
always.
Copyright © 2009 CIRG. All Rights Reserved.