Package randoop.generation
Interface IEventListener
-
public interface IEventListener
Defines various event during Randoop's generation at which an implementing class can be notified and perform some action.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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 eseq)
Called by the AbstractGenerator during each generation iteration, immediately after a generationstep()
has completed.void
generationStepPre()
Called by the AbstractGenerator during each generation iteration, immediately before a generationstep()
is performed.void
progressThreadUpdate()
Called by ProgressDisplay at regular intervals to monitor progress.boolean
shouldStopGeneration()
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 generationstep()
is performed.- See Also:
AbstractGenerator
-
generationStepPost
void generationStepPost(ExecutableSequence eseq)
Called by the AbstractGenerator during each generation iteration, immediately after a generationstep()
has completed.- Parameters:
eseq
- 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
-
shouldStopGeneration
boolean shouldStopGeneration()
Called by AbstractGenerator to determine if generation should stop. True signals to the generator that generation should stop.- Returns:
- true if generation should stop, false otherwise
- See Also:
AbstractGenerator
-
-