public class InteractionIntervalReport extends AbstractReport
A report which samples data regularly in response to
an InteractionsFinishedEvent. The data to be sampled
is configured by specifying an instance of ReportVariables
.
ReportVariables
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SAMPLE_INTERVAL |
protected int |
interactions |
protected int |
sampleInterval |
reportVariables
Constructor and Description |
---|
InteractionIntervalReport() |
InteractionIntervalReport(int sampleInterval) |
InteractionIntervalReport(int sampleInterval,
ReportVariables reportVariables) |
InteractionIntervalReport(ReportVariables reportVariables) |
Modifier and Type | Method and Description |
---|---|
void |
eventOccurred(SimEvent event) |
int |
getSampleInterval() |
void |
onInteractionsFinished(InteractionsFinishedEvent event) |
void |
onSimulationFinished(SimEvent event) |
void |
onSimulationStarting(SimulationStartingEvent event) |
void |
setSampleInterval(int sampleInterval)
Configure the sampling interval for this report.
|
getName, getReportVariables, getVariableBindings, setReportVariables
protected int interactions
protected int sampleInterval
public static final int DEFAULT_SAMPLE_INTERVAL
public InteractionIntervalReport(int sampleInterval, ReportVariables reportVariables)
public InteractionIntervalReport()
public InteractionIntervalReport(int sampleInterval)
public InteractionIntervalReport(ReportVariables reportVariables)
public void eventOccurred(SimEvent event)
eventOccurred
in interface EventListener
eventOccurred
in class AbstractReport
public void onSimulationFinished(SimEvent event)
public void onSimulationStarting(SimulationStartingEvent event)
public void onInteractionsFinished(InteractionsFinishedEvent event)
public int getSampleInterval()
public void setSampleInterval(int sampleInterval)
sampleInterval
- Copyright © 2014. All rights reserved.