net.sourceforge.jabm.report
Class CombiSeriesReportVariables

java.lang.Object
  extended by net.sourceforge.jabm.event.AbstractModel
      extended by net.sourceforge.jabm.report.CombiSeriesReportVariables
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, EventListener, Model, Report, ReportVariables, Timeseries, org.springframework.beans.factory.InitializingBean

public class CombiSeriesReportVariables
extends AbstractModel
implements Timeseries, org.springframework.beans.factory.InitializingBean

See Also:
Serialized Form
 

Field Summary
protected  java.lang.String name
           
protected  java.util.List<Timeseries> seriesList
           
 
Fields inherited from class net.sourceforge.jabm.event.AbstractModel
deleteQueue, genericListeners, specificListeners
 
Constructor Summary
CombiSeriesReportVariables()
           
 
Method Summary
 void afterPropertiesSet()
           
 void compute(SimEvent event)
          Update variables.
 void dispose(SimEvent event)
          Clean up any side effects (eg close file).
 void eventOccurred(SimEvent event)
           
 java.lang.String getName()
           
 int getNumberOfSeries()
           
 java.util.List<Timeseries> getSeriesList()
           
 java.util.Map<java.lang.Object,java.lang.Number> getVariableBindings()
          Get the values calculated by this report.
 java.lang.Number getX(int seriesIndex, int itemIndex)
           
 java.lang.Number getY(int seriesIndex, int itemIndex)
           
 java.util.List<java.lang.Object> getyVariableNames()
           
 void initialise(SimEvent event)
          Initialise the variables in response to event.
 void setName(java.lang.String name)
           
 void setSeriesList(java.util.List<Timeseries> seriesList)
           
 int size(int seriesIndex)
           
 
Methods inherited from class net.sourceforge.jabm.event.AbstractModel
addListener, addListener, clearListeners, clone, fireEvent, notifyGenericListeners, notifySpecificListeners, processDeleteQueue, removeListener
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.jabm.event.Model
addListener, addListener, removeListener
 

Field Detail

seriesList

protected java.util.List<Timeseries> seriesList

name

protected java.lang.String name
Constructor Detail

CombiSeriesReportVariables

public CombiSeriesReportVariables()
Method Detail

compute

public void compute(SimEvent event)
Description copied from interface: ReportVariables
Update variables.

Specified by:
compute in interface ReportVariables

dispose

public void dispose(SimEvent event)
Description copied from interface: ReportVariables
Clean up any side effects (eg close file).

Specified by:
dispose in interface ReportVariables

initialise

public void initialise(SimEvent event)
Description copied from interface: ReportVariables
Initialise the variables in response to event.

Specified by:
initialise in interface ReportVariables

getName

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

setName

public void setName(java.lang.String name)

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.

eventOccurred

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

getX

public java.lang.Number getX(int seriesIndex,
                             int itemIndex)
Specified by:
getX in interface Timeseries

getY

public java.lang.Number getY(int seriesIndex,
                             int itemIndex)
Specified by:
getY in interface Timeseries

size

public int size(int seriesIndex)
Specified by:
size in interface Timeseries

getNumberOfSeries

public int getNumberOfSeries()
Specified by:
getNumberOfSeries in interface Timeseries

getSeriesList

public java.util.List<Timeseries> getSeriesList()

setSeriesList

public void setSeriesList(java.util.List<Timeseries> seriesList)

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

getyVariableNames

public java.util.List<java.lang.Object> getyVariableNames()
Specified by:
getyVariableNames in interface Timeseries