randoop.runtime
Class PluginBridge

Object
  extended by PluginBridge
All Implemented Interfaces:
IEventListener, ITestFilter

public class PluginBridge
extends Object
implements ITestFilter, IEventListener


Field Summary
Modifier and Type Field and Description
 List<String> additionalJunitClasses
           
 Set<Pair<StatementKind,Class<?>>> errors
           
 MessageSender msgSender
           
 
Constructor Summary
Constructor and Description
PluginBridge(AbstractGenerator generator, MessageSender sender)
           
 
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 es)
          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.
 boolean outputSequence(ExecutableSequence s, FailureSet f)
          Given sequence s and associated failure set f, returns true if s should be output to the user as a test case.
 void progressThreadUpdate()
          Called by ProgressDisplay at regular intervals to monitor progress.
 boolean stopGeneration()
          Called by AbstractGenerator to determine if generation should stop.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

msgSender

public MessageSender msgSender

additionalJunitClasses

public List<String> additionalJunitClasses

errors

public Set<Pair<StatementKind,Class<?>>> errors
Constructor Detail

PluginBridge

public PluginBridge(AbstractGenerator generator,
                    MessageSender sender)
Method Detail

outputSequence

public boolean outputSequence(ExecutableSequence s,
                              FailureSet f)
Description copied from interface: ITestFilter
Given sequence s and associated failure set f, returns true if s should be output to the user as a test case.

Specified by:
outputSequence in interface ITestFilter

generationStepPost

public void generationStepPost(ExecutableSequence es)
Description copied from interface: IEventListener
Called by the AbstractGenerator during each generation iteration, immediately after a generation step() has completed.

Specified by:
generationStepPost in interface IEventListener
Parameters:
es - 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

generationStepPre

public void generationStepPre()
Description copied from interface: IEventListener
Called by the AbstractGenerator during each generation iteration, immediately before a generation step() is performed.

Specified by:
generationStepPre in interface IEventListener
See Also:
AbstractGenerator

progressThreadUpdate

public void progressThreadUpdate()
Description copied from interface: IEventListener
Called by ProgressDisplay at regular intervals to monitor progress. Implementing classes can use this opportunity to update state.

Specified by:
progressThreadUpdate in interface IEventListener
See Also:
ProgressDisplay

stopGeneration

public boolean stopGeneration()
Description copied from interface: IEventListener
Called by AbstractGenerator to determine if generation should stop. True signals to the generator that generation should stop.

Specified by:
stopGeneration in interface IEventListener
See Also:
AbstractGenerator

explorationStart

public void explorationStart()
Description copied from interface: IEventListener
Called immediately at the start of test generation, before any generation steps have occurred.

Specified by:
explorationStart in interface IEventListener

explorationEnd

public void explorationEnd()
Description copied from interface: IEventListener
Called immediately after the end of test generation.

Specified by:
explorationEnd in interface IEventListener