public interface SampleModel
SampleModelImplementation
.Modifier and Type | Interface and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.Copyright © 2000-2014. All Rights Reserved.