SSJ  3.3.1
Stochastic Simulation in Java
Public Member Functions | Protected Attributes | List of all members
BasicObservationCollector< E > Class Template Reference

Does nothing but counting the total number of observations. More...

Inheritance diagram for BasicObservationCollector< E >:
[legend]
Collaboration diagram for BasicObservationCollector< E >:
[legend]

Public Member Functions

 BasicObservationCollector (String label)
 
String getLabel ()
 
int getNumObservations ()
 
void init ()
 Resets the collector. More...
 
void observe (E observation)
 Updates the number of observations.
 
Report report ()
 Returns a report of measurements on the data collected by the collector.
 
String toString ()
 

Protected Attributes

String label
 
int nObservations
 

Detailed Description

Does nothing but counting the total number of observations.

Provides useful functionality for deriving classes.

Deriving classes overriding methods, e.g. init() or add(), must call their parent's versions.

Constructor & Destructor Documentation

◆ BasicObservationCollector()

BasicObservationCollector ( String  label)
Parameters
labellabel describing the collector

Member Function Documentation

◆ init()

void init ( )

Resets the collector.

Forgets all previous observations.

Implements ObservationCollector< E >.


The documentation for this class was generated from the following file: