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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactivateComposedCriterion()Activates Composed Criterion Mode in which multiple termination criteria can be stringed together to form a more powerful termination criterionvoidactivateTCComparisionMode()Activates Termination Criteria Comparison Mode in which termination criteria decisions do not influence the optimization but are shown on the output.voidaddOptimizationTerminatedListener(IOptimizationTerminatedListener listener)Removes a new listener for the OptimizationTerminated event.voidaddOutputChangedListener(IOutputChangedListener listener)Adds a new listener for the OutputChanged event.voiddeactivateComposedCriterion()If Composed Criterion is deactivated then a simple || condition is used to evaluate results from the different criteria.voiddeactivateTCComparisionMode()Deactivates Termination Criteria Comparison Mode in which termination criteria decisions are do not influence the optimization but are shown on the output.voidevaluateTerminationCriteria()Evaluates the termination criteria and then stops the optimization if the specified conditions are met.voidinitialize(List<IConfiguration> tcConfigurations)Initializes the termination criteria manager by supplying it with a list of termination criteria configurations.voidremoveOptimizationTerminatedListener(IOptimizationTerminatedListener listener)Removes a new listener for the OptimizationTerminated event.voidremoveOutputChangedListener(IOutputChangedListener listener)Removes a new listener for the OutputChanged event.voidsetComposedCriterionExpression(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
-
-
-
-
Method Detail
-
initialize
void initialize(List<IConfiguration> tcConfigurations)
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
void setComposedCriterionExpression(String composedCriterionExpression)
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
void addOutputChangedListener(IOutputChangedListener listener)
Adds a new listener for the OutputChanged event.- Parameters:
listener- IOutputChangedListener listener
-
removeOutputChangedListener
void removeOutputChangedListener(IOutputChangedListener listener)
Removes a new listener for the OutputChanged event.- Parameters:
listener- IOutputChangedListener listener
-
addOptimizationTerminatedListener
void addOptimizationTerminatedListener(IOptimizationTerminatedListener listener)
Removes a new listener for the OptimizationTerminated event.- Parameters:
listener- IOptimizationTerminatedListener listener
-
removeOptimizationTerminatedListener
void removeOptimizationTerminatedListener(IOptimizationTerminatedListener listener)
Removes a new listener for the OptimizationTerminated event.- Parameters:
listener- IOptimizationTerminatedListener listener
-
-