|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SampleModel
Interface to SampleModelImplementation.
| Nested Class Summary | |
|---|---|
static class |
SampleModel.AbstractListener
Skeleton implementation of SampleModel.Listener. |
static interface |
SampleModel.Listener
Interface for listeners to SampleModelImplementation. |
static interface |
SampleModel.State
A snapshot of the model state. |
| Method Summary | |
|---|---|
void |
addModelListener(SampleModel.Listener listener)
Add a new model listener. |
void |
addSampleListener(Test test,
SampleListener listener)
Add a new sample listener for the specific test. |
void |
addTestReport(TestStatisticsMap statisticsDelta)
Add a new test report. |
void |
addTotalSampleListener(SampleListener listener)
Add a new total sample listener. |
StatisticExpression |
getPeakTPSExpression()
Get the expression for peak TPS. |
SampleModel.State |
getState()
Get the current model state. |
StatisticsSet |
getTotalCumulativeStatistics()
Get the cumulative statistics for this model. |
StatisticsSet |
getTotalLatestStatistics()
Get the total statistics for the latest sample. |
StatisticExpression |
getTPSExpression()
Get the statistics expression for TPS. |
void |
registerTests(Collection<Test> tests)
Register new tests. |
void |
reset()
Discard all of the information held by the model. |
void |
start()
Start the model. |
void |
stop()
Stop the model. |
void |
zeroStatistics()
Zero the statistics. |
| Method Detail |
|---|
void reset()
This doesn't change the model state.
void zeroStatistics()
void start()
void stop()
SampleModel.State getState()
StatisticExpression getTPSExpression()
StatisticExpression getPeakTPSExpression()
StatisticsSet getTotalCumulativeStatistics()
StatisticsSet getTotalLatestStatistics()
void addModelListener(SampleModel.Listener listener)
listener - The listener.void addTotalSampleListener(SampleListener listener)
listener - The sample listener.
void addSampleListener(Test test,
SampleListener listener)
test - The test to add the sample listener for.listener - The sample listener.void registerTests(Collection<Test> tests)
tests - The new tests.void addTestReport(TestStatisticsMap statisticsDelta)
statisticsDelta - The new test statistics.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||