
 Accumulate () 
 Constructs a new Accumulate statistical probe using the default simulator and initializes it by invoking init() .


 Accumulate (Simulator inSim) 
 Constructs a new Accumulate statistical probe linked to the given simulator, and initializes it by invoking init() . More...


 Accumulate (String name) 
 Constructs and initializes a new Accumulate statistical probe with name name and initial time 0, using the default simulator.


 Accumulate (Simulator inSim, String name) 
 Constructsinitializes a new Accumulate statistical probe with name name and initial time 0. More...


void  init () 
 Initializes the statistical collector and puts the current value of the corresponding variable to 0. More...


void  init (double x) 
 Same as init followed by update(x). More...


void  update () 
 Updates the accumulator using the last value passed to update(double).


void  update (double x) 
 Gives a new observation x to the statistical collector. More...


double  sum () 

double  average () 
 Returns the timeaverage since the last initialization to the last call to update .


String  shortReportHeader () 

String  shortReport () 

String  report () 
 Returns a string containing a report on this collector since its last initialization.


double  getInitTime () 
 Returns the initialization time for this object. More...


double  getLastTime () 
 Returns the last update time for this object. More...


double  getLastValue () 
 Returns the value passed to this probe by the last call to its update method (or the initial value if update was never called after init ). More...


Simulator  simulator () 
 Returns the simulator associated with this statistical probe. More...


void  setSimulator (Simulator sim) 
 Sets the simulator associated with this probe to sim . More...


Accumulate  clone () 
 Clone this object.


abstract void  init () 
 Initializes the statistical collector.


void  setName (String name) 
 Sets the name of this statistical collector to name .


String  getName () 
 Returns the name associated with this probe, or null if no name was specified upon construction. More...


double  min () 
 Returns the smallest value taken by the variable since the last initialization of this probe. More...


double  max () 
 Returns the largest value taken by the variable since the last initialization of this probe. More...


double  sum () 
 Returns the sum cumulated so far for this probe. More...


abstract double  average () 
 Returns the average for this collector. More...


abstract String  report () 
 Returns a string containing a report for this statistical collector. More...


abstract String  shortReport () 
 Formats and returns a short, oneline report about this statistical probe. More...


abstract String  shortReportHeader () 
 Returns a string containing the name of the values returned in the report strings. More...


boolean  isBroadcasting () 
 Determines if this statistical probe is broadcasting observations to registered observers. More...


void  setBroadcasting (boolean b) 
 Instructs the probe to turn its broadcasting ON or OFF. More...


boolean  isCollecting () 
 Determines if this statistical probe is collecting values. More...


void  setCollecting (boolean b) 
 Turns ON or OFF the collection of statistical observations. More...


void  addObservationListener (ObservationListener l) 
 Adds the observation listener l to the list of observers of this statistical probe. More...


void  removeObservationListener (ObservationListener l) 
 Removes the observation listener l from the list of observers of this statistical probe. More...


void  clearObservationListeners () 
 Removes all observation listeners from the list of observers of this statistical probe.


void  notifyListeners (double x) 
 Notifies the observation x to all registered observers if broadcasting is ON. More...


StatProbe  clone () throws CloneNotSupportedException 
