@ALDParametrizedClass public abstract class MTBTermination extends Object implements Cloneable
Modifier and Type | Field and Description |
---|---|
protected SnakeOptimizerSingle |
optimizer
Current snake optimizer with all its parameters and fields.
|
protected SnakeOptimizer.Snake_status |
status
Status of current snake.
|
protected boolean |
verbose
Flag to turn display of additional information on/off.
|
Constructor and Description |
---|
MTBTermination() |
Modifier and Type | Method and Description |
---|---|
abstract MTBTermination |
clone()
Clones this object.
|
abstract boolean |
init(SnakeOptimizerSingle opt)
Initializing routine which is called once before the termination is
actually used.
|
abstract SnakeOptimizer.Snake_status |
terminate()
Method to check termination status of the snake.
|
abstract String |
toString()
Method for short termination description name.
|
@ALDClassParameter(label="Verbose", dataIOOrder=100) protected boolean verbose
protected SnakeOptimizerSingle optimizer
Parameters and fields include, e.g., the current snake, old snake, gamma values and energies.
protected SnakeOptimizer.Snake_status status
Termination status can be SNAKE_DONE or SNAKE_SUCCESS.
public abstract SnakeOptimizer.Snake_status terminate()
public abstract boolean init(SnakeOptimizerSingle opt)
In this routine global parameter settings can be handled or other initialization stuff be done. The SnakeOptimizer will call this routine once before the actual use of the termination strategy. If no stuff needs to be done in advance the routine should at least return true.
opt
- calling snake optimizerpublic abstract String toString()
public abstract MTBTermination clone() throws CloneNotSupportedException
Note that all internal variables should be cloned. As this is not
possible for the SnakeOptimizerSingle
object the internal
reference should be left to null. It will be properly initialized
later when SnakeOptimizerSingle.initOptimizer()
is invoked.
clone
in class Object
CloneNotSupportedException
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.