Package de.uka.ipd.sdq.tcfmoop.tcmanager
Interface ITerminationCriteriaManager
- All Superinterfaces:
IRequestManualTerminationListener
,org.opt4j.core.optimizer.OptimizerIterationListener
- All Known Implementing Classes:
TerminationCriteriaManager
public interface ITerminationCriteriaManager
extends org.opt4j.core.optimizer.OptimizerIterationListener, IRequestManualTerminationListener
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Activates Composed Criterion Mode in which multiple termination criteria can be stringed together to form a more powerful termination criterionvoid
Activates Termination Criteria Comparison Mode in which termination criteria decisions do not influence the optimization but are shown on the output.void
Removes a new listener for the OptimizationTerminated event.void
Adds a new listener for the OutputChanged event.void
If Composed Criterion is deactivated then a simple || condition is used to evaluate results from the different criteria.void
Deactivates Termination Criteria Comparison Mode in which termination criteria decisions are do not influence the optimization but are shown on the output.void
Evaluates the termination criteria and then stops the optimization if the specified conditions are met.void
initialize
(List<IConfiguration> tcConfigurations) Initializes the termination criteria manager by supplying it with a list of termination criteria configurations.void
Removes a new listener for the OptimizationTerminated event.void
Removes a new listener for the OutputChanged event.void
setComposedCriterionExpression
(String composedCriterionExpression) Sets the expression used to define the relationship between the termination criterion.Methods inherited from interface de.uka.ipd.sdq.tcfmoop.tcmanager.IRequestManualTerminationListener
handleManualTerminationRequest
Methods inherited from interface org.opt4j.core.optimizer.OptimizerIterationListener
iterationComplete
-
Method Details
-
initialize
Initializes the termination criteria manager by supplying it with a list of termination criteria configurations.- Parameters:
tcConfigurations
-
-
activateTCComparisionMode
void activateTCComparisionMode()Activates Termination Criteria Comparison Mode in which termination criteria decisions do not influence the optimization but are shown on the output. -
deactivateTCComparisionMode
void deactivateTCComparisionMode()Deactivates Termination Criteria Comparison Mode in which termination criteria decisions are do not influence the optimization but are shown on the output. -
activateComposedCriterion
void activateComposedCriterion()Activates Composed Criterion Mode in which multiple termination criteria can be stringed together to form a more powerful termination criterion -
deactivateComposedCriterion
void deactivateComposedCriterion()If Composed Criterion is deactivated then a simple || condition is used to evaluate results from the different criteria. -
setComposedCriterionExpression
Sets the expression used to define the relationship between the termination criterion. If not set a standard Expression is used (Crit1 || Crit2 || Crit3 || Crit4 || ...)- Parameters:
composedCriterionExpression
-
-
evaluateTerminationCriteria
void evaluateTerminationCriteria()Evaluates the termination criteria and then stops the optimization if the specified conditions are met. -
addOutputChangedListener
Adds a new listener for the OutputChanged event.- Parameters:
listener
- IOutputChangedListener listener
-
removeOutputChangedListener
Removes a new listener for the OutputChanged event.- Parameters:
listener
- IOutputChangedListener listener
-
addOptimizationTerminatedListener
Removes a new listener for the OptimizationTerminated event.- Parameters:
listener
- IOptimizationTerminatedListener listener
-
removeOptimizationTerminatedListener
Removes a new listener for the OptimizationTerminated event.- Parameters:
listener
- IOptimizationTerminatedListener listener
-