|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.indiana.iucbrf.systemtest.SystemTest
public abstract class SystemTest
This is the base component class for testing of the system.
Field Summary | |
---|---|
protected int |
progressReportFrequency
|
Constructor Summary | |
---|---|
SystemTest()
Creates new Systemtest |
Method Summary | |
---|---|
protected void |
maybeShowProgressReport(int i,
PerformanceMonitor monitor,
CaseBase cb)
|
protected abstract void |
runTest(CBRSystem cbrSystem)
The system designer must provide a definition of this method in order to run a specific test. |
abstract void |
setDomain(Domain domain)
Set the domain in which this test is taking place. |
void |
setProgressReportFrequency(int progressReportFrequency)
|
PerformanceMonitor |
test(CBRSystem cbrSystem)
|
PerformanceMonitor |
test(CBRSystem cbrSystem,
boolean doMaintenance)
This method merely changes the system context to Context.TESTING_CONTEXT, calls runTest(), and then restores the original context. |
PerformanceMonitor |
test(CBRSystem cbrSystem,
PerformanceMonitor testMonitor,
boolean doMaintenance)
This method merely changes the system context to Context.TESTING_CONTEXT, calls runAndReport(), and then restores the original context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int progressReportFrequency
Constructor Detail |
---|
public SystemTest()
Method Detail |
---|
public void setProgressReportFrequency(int progressReportFrequency)
public PerformanceMonitor test(CBRSystem cbrSystem)
public PerformanceMonitor test(CBRSystem cbrSystem, boolean doMaintenance)
cbrSystem
- The system to be tested.doMaintenance
- Set to true to do this system's standard maintenance; set to false to disable maintenance during the test.
public PerformanceMonitor test(CBRSystem cbrSystem, PerformanceMonitor testMonitor, boolean doMaintenance)
cbrSystem
- The system to be tested.testMonitor
- The performance monitor which will record the experiences of the system during this test.doMaintenance
- Set to true to do this system's standard maintenance; set to false to disable maintenance during the test.
protected abstract void runTest(CBRSystem cbrSystem)
public abstract void setDomain(Domain domain)
protected void maybeShowProgressReport(int i, PerformanceMonitor monitor, CaseBase cb)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |