randoop
Interface IEventListener

All Known Implementing Classes:
CodeCoverageTracker, PluginBridge

public interface IEventListener

Defines various event during Randoop's generation at which an implementing class can be notified and perform some action.


Method Summary
Modifier and Type Method and Description
 void explorationEnd()
          Called immediately after the end of test generation.
 void explorationStart()
          Called immediately at the start of test generation, before any generation steps have occurred.
 void generationStepPost(ExecutableSequence s)
          Called by the AbstractGenerator during each generation iteration, immediately after a generation step() has completed.
 void generationStepPre()
          Called by the AbstractGenerator during each generation iteration, immediately before a generation step() is performed.
 void progressThreadUpdate()
          Called by ProgressDisplay at regular intervals to monitor progress.
 boolean stopGeneration()
          Called by AbstractGenerator to determine if generation should stop.
 

Method Detail

explorationStart

void explorationStart()
Called immediately at the start of test generation, before any generation steps have occurred.


explorationEnd

void explorationEnd()
Called immediately after the end of test generation.


generationStepPre

void generationStepPre()
Called by the AbstractGenerator during each generation iteration, immediately before a generation step() is performed.

See Also:
AbstractGenerator

generationStepPost

void generationStepPost(ExecutableSequence s)
Called by the AbstractGenerator during each generation iteration, immediately after a generation step() has completed.

Parameters:
s - sequence that was generated and executed in the last generation step. Can b null, which means the last step was unable to generate a sequence (e.g. due to a bad random choice).
See Also:
AbstractGenerator

progressThreadUpdate

void progressThreadUpdate()
Called by ProgressDisplay at regular intervals to monitor progress. Implementing classes can use this opportunity to update state.

See Also:
ProgressDisplay

stopGeneration

boolean stopGeneration()
Called by AbstractGenerator to determine if generation should stop. True signals to the generator that generation should stop.

See Also:
AbstractGenerator