public abstract class AbstractIterativeAlgorithmListener extends AbstractCloneableSerializable implements IterativeAlgorithmListener
IterativeAlgorithmListener
interface that provides default implementations of the event methods that
do nothing. It is meant so that listeners only need to implement the methods
for the events they want to listen to.IterativeAlgorithmListener
,
Serialized FormConstructor and Description |
---|
AbstractIterativeAlgorithmListener()
Creates a new
AbstractIterativeAlgorithmListener . |
Modifier and Type | Method and Description |
---|---|
void |
algorithmEnded(IterativeAlgorithm algorithm)
This method is called when the algorithm has ended, after the last step
of the algorithm.
|
void |
algorithmStarted(IterativeAlgorithm algorithm)
This method is called when a algorithm has started, before the first
step of the algorithm.
|
void |
stepEnded(IterativeAlgorithm algorithm)
This method is called when the algorithm has ended a step of its
execution.
|
void |
stepStarted(IterativeAlgorithm algorithm)
This method is called when the algorithm has started a step in its
execution.
|
clone
public AbstractIterativeAlgorithmListener()
AbstractIterativeAlgorithmListener
.public void algorithmStarted(IterativeAlgorithm algorithm)
IterativeAlgorithmListener
algorithmStarted
in interface IterativeAlgorithmListener
algorithm
- The algorithm that has started.public void algorithmEnded(IterativeAlgorithm algorithm)
IterativeAlgorithmListener
algorithmEnded
in interface IterativeAlgorithmListener
algorithm
- The algorithm that has ended.public void stepStarted(IterativeAlgorithm algorithm)
IterativeAlgorithmListener
stepStarted
in interface IterativeAlgorithmListener
algorithm
- The algorithm that has started another step of its execution.public void stepEnded(IterativeAlgorithm algorithm)
IterativeAlgorithmListener
stepEnded
in interface IterativeAlgorithmListener
algorithm
- The algorithm that has ended another step of its execution.