|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.rational.test.lt.testgen.core.testgen.BaseTestGenerator
public abstract class BaseTestGenerator
A base implementation of ITestGenerator
. Although this is not mandatory, it
is advised to extend this class rather than implementing the interface. Sub-classes
must implement ITestGenerator.process(IRecorderPacket)
, and may redefine all other
protected and public methods.
Constructor Summary | |
---|---|
BaseTestGenerator()
|
Method Summary | |
---|---|
void |
complete(IProgressMonitor monitor)
This implementation does nothing. |
void |
dispose()
This implementation does nothing. |
int |
getCompleteOperationWeight()
This implementation returns 0. |
protected ITestGeneratorContext |
getContext()
|
void |
initialize(ITestGeneratorContext context)
This implementation stores the context so it can be retrieved later using BaseTestGenerator.getContext() . |
void |
inspect(IRecorderPacket packet)
This implementation does nothing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.rational.test.lt.testgen.core.testgen.ITestGenerator |
---|
process |
Constructor Detail |
---|
public BaseTestGenerator()
Method Detail |
---|
public void initialize(ITestGeneratorContext context) throws CoreException
BaseTestGenerator.getContext()
. Sub-classes may extend this method but should
not forget to invoke the super implementation.
initialize
in interface ITestGenerator
context
- The context in which the test generator will operate.
CoreException
public void inspect(IRecorderPacket packet) throws CoreException
inspect
in interface ITestGenerator
packet
- A recorder packet whose type has been declared to be supported by this test generator.
CoreException
public void complete(IProgressMonitor monitor) throws CoreException
BaseTestGenerator.getCompleteOperationWeight()
.
complete
in interface ITestGenerator
monitor
- A progress monitor. This progress monitor can be safely ignored if
ITestGenerator.getCompleteOperationWeight()
returns 0. Otherwise, the implementation
is expected to update this monitor to reflect the operation progress.
CoreException
public void dispose()
dispose
in interface ITestGenerator
protected final ITestGeneratorContext getContext()
public int getCompleteOperationWeight()
getCompleteOperationWeight
in interface ITestGenerator
|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |