net.sourceforge.jabm.report
Class AbstractReport

java.lang.Object
  extended by net.sourceforge.jabm.report.AbstractReport
All Implemented Interfaces:
EventListener, Report
Direct Known Subclasses:
InteractionIntervalReport, IntraBatchReport, SimulationFinishedNoInitialisation, SimulationFinishedReport

public abstract class AbstractReport
extends java.lang.Object
implements Report

 

Field Summary
protected  ReportVariables reportVariables
           
 
Constructor Summary
AbstractReport()
           
AbstractReport(ReportVariables reportVariables)
           
 
Method Summary
 void eventOccurred(SimEvent event)
           
 java.lang.String getName()
           
 ReportVariables getReportVariables()
           
 java.util.Map<java.lang.Object,java.lang.Number> getVariableBindings()
          Get the values calculated by this report.
 void setReportVariables(ReportVariables reportVariables)
          Configure the variables that will be updated by this report.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reportVariables

protected ReportVariables reportVariables
Constructor Detail

AbstractReport

public AbstractReport(ReportVariables reportVariables)

AbstractReport

public AbstractReport()
Method Detail

getVariableBindings

public java.util.Map<java.lang.Object,java.lang.Number> getVariableBindings()
Description copied from interface: Report
Get the values calculated by this report.

Specified by:
getVariableBindings in interface Report
Returns:
A Map of user-readable variable names to their associated values.

getReportVariables

public ReportVariables getReportVariables()

setReportVariables

public void setReportVariables(ReportVariables reportVariables)
Configure the variables that will be updated by this report.

Parameters:
reportVariables -
See Also:
ReportVariables

eventOccurred

public void eventOccurred(SimEvent event)
Specified by:
eventOccurred in interface EventListener

getName

public java.lang.String getName()
Specified by:
getName in interface Report