public class TriggerTerminationCondition extends TerminationCondition
Constructor and Description |
---|
TriggerTerminationCondition() |
Modifier and Type | Method and Description |
---|---|
boolean |
continueFurther(int iteration,
double score,
int size,
MessageLogger logger)
Whether to continue for an additional iteration step or not.
|
void |
initialize()
Called before
TerminationCondition.continueFurther(int, double, int, org.anchoranalysis.core.log.MessageLogger) once to setup state in the bean. |
void |
trigger() |
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public void initialize()
TerminationCondition
TerminationCondition.continueFurther(int, double, int, org.anchoranalysis.core.log.MessageLogger)
once to setup state in the bean.
If called again, it resets the current state.
initialize
in class TerminationCondition
public boolean continueFurther(int iteration, double score, int size, MessageLogger logger)
TerminationCondition
continueFurther
in class TerminationCondition
iteration
- the current iteration of the optimization.score
- the current score associated with the optimizationsize
- the current size associated with the optimization.logger
- a logger to write messages topublic void trigger()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.