|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fr.jussieu.gla.wasa.util.customizer.EditableCustomizer
A configurable ICustomizer
.
Inner classes inherited from class fr.jussieu.gla.wasa.core.ICustomizer |
ICustomizer.ICustomizerEditor |
Constructor Summary | |
EditableCustomizer()
|
Method Summary | |
java.lang.Object |
clone()
|
fr.jussieu.gla.wasa.util.customizer.ICustomizerEditor |
createCustomizerEditor()
Creates an ICustomizerEditor instance bound to
this.
|
EditableEffect |
getEffect(AlgorithmState forState)
|
AlgorithmState[] |
getSupportedStates()
Returns AlgorithmStates for which a non-null EditableEffect
is set. |
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. |
void |
setEffect(AlgorithmState forState,
EditableEffect effect)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public EditableCustomizer()
Method Detail |
public java.lang.String toString()
toString
in class java.lang.Object
public void processUninitialized(Problem problem) throws EngineException
ICustomizer
AlgorithmState.UNINITIALIZED
execute a step.processUninitialized
in interface ICustomizer
public void processNoErrorAssigned(Problem problem) throws EngineException
ICustomizer
AlgorithmState.NO_ERROR_ASSIGNED
execute a step.processNoErrorAssigned
in interface ICustomizer
public void processNoVarFound(Problem problem) throws EngineException
ICustomizer
AlgorithmState.NO_VAR_FOUND
execute a step.processNoVarFound
in interface ICustomizer
public void processNoImprovementFound(Problem problem) throws EngineException
ICustomizer
AlgorithmState.NO_IMPROVEMENT_FOUND
execute a step.processNoImprovementFound
in interface ICustomizer
public void processImprovementFound(Problem problem) throws EngineException
ICustomizer
AlgorithmState.IMPROVEMENT_FOUND
execute a step.processImprovementFound
in interface ICustomizer
public fr.jussieu.gla.wasa.util.customizer.ICustomizerEditor createCustomizerEditor()
ICustomizer
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.
createCustomizerEditor
in interface ICustomizer
fr.jussieu.gla.wasa.core.ICustomizer
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface ICustomizer
clone
in class java.lang.Object
public AlgorithmState[] getSupportedStates()
EditableEffect
is set.public EditableEffect getEffect(AlgorithmState forState)
public void setEffect(AlgorithmState forState, EditableEffect effect)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |