|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Define the behaviour of the customizable part of the
Algorithm.
This class implements the Cloneable in order to allow concrete ICustomizer instances to be created using the Prototype pattern.
| Inner Class Summary | |
static interface |
ICustomizer.ICustomizerEditor
Defines a visual editor for letting the user parametrize an ICustomizer instance. |
| Method Summary | |
java.lang.Object |
clone()
|
ICustomizer.ICustomizerEditor |
createCustomizerEditor()
Creates an ICustomizer.ICustomizerEditor instance bound to
this.
|
void |
processImprovementFound(Problem problem)
This method is called before an engine in the state AlgorithmState.IMPROVEMENT_FOUND execute a step. |
void |
processNoErrorAssigned(Problem problem)
This method is called before an engine in the state AlgorithmState.NO_ERROR_ASSIGNED execute a step. |
void |
processNoImprovementFound(Problem problem)
This method is called before an engine in the state AlgorithmState.NO_IMPROVEMENT_FOUND execute a step. |
void |
processNoVarFound(Problem problem)
This method is called before an engine in the state AlgorithmState.NO_VAR_FOUND execute a step. |
void |
processUninitialized(Problem problem)
This method is called before an engine in the state AlgorithmState.UNINITIALIZED execute a step. |
| Method Detail |
public void processUninitialized(Problem problem)
throws EngineException
AlgorithmState.UNINITIALIZED execute a step.
public void processNoErrorAssigned(Problem problem)
throws EngineException
AlgorithmState.NO_ERROR_ASSIGNED execute a step.
public void processNoVarFound(Problem problem)
throws EngineException
AlgorithmState.NO_VAR_FOUND execute a step.
public void processNoImprovementFound(Problem problem)
throws EngineException
AlgorithmState.NO_IMPROVEMENT_FOUND execute a step.
public void processImprovementFound(Problem problem)
throws EngineException
AlgorithmState.IMPROVEMENT_FOUND execute a step.public ICustomizer.ICustomizerEditor createCustomizerEditor()
ICustomizer.ICustomizerEditor instance bound to
this.
The program using ICustomizerEditor should take care of hiding its visual component after the user entered parameters, and work on a clone of the ICustomizer parametrized instance. Otherwise, it could lead to unclear situations, where ICustomizer state is not reflected by GUI.
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||