com.Bayesia.positioning.event
Interface ProgressListener

All Superinterfaces:
java.util.EventListener

public interface ProgressListener
extends java.util.EventListener

You must implement ProgressListener if you want to listen to the progress of the algorithm and register it to GeneticPositioning or SymmetricPositioning.

Please see ProgressEvent, GeneticPositioning and SymmetricPositioning

Version:
2.0 28/10/04

Method Summary
 void progressChanged(ProgressEvent e)
          This method is called each time the progress changes (i.e. a new better generation is found for the GeneticPositioning or a new iteration is done by the SymmetricPositioning).
 void progressEnded(ProgressEvent e)
          This method is called only once when the progress ends.
 void progressStarted(ProgressEvent e)
          This method is called only once when the progress starts.
 

Method Detail

progressStarted

public void progressStarted(ProgressEvent e)
This method is called only once when the progress starts. The type of the ProgressEvent is only ProgressEvent.START_EVENT.

Parameters:
e - the ProgressEvent generated
See Also:
ProgressEvent

progressChanged

public void progressChanged(ProgressEvent e)
This method is called each time the progress changes (i.e. a new better generation is found for the GeneticPositioning or a new iteration is done by the SymmetricPositioning). The type of the ProgressEvent can be one of ProgressEvent.START_EVENT, ProgressEvent.PROGRESS_EVENT and ProgressEvent.END_EVENT.

Parameters:
e - the ProgressEvent generated
See Also:
ProgressEvent

progressEnded

public void progressEnded(ProgressEvent e)
This method is called only once when the progress ends. The type of the ProgressEvent is only ProgressEvent.END_EVENT.

Parameters:
e - the ProgressEvent generated
See Also:
ProgressEvent