SimProgressBar Class Reference

#include <SimProgressBar.h>

Inheritance diagram for SimProgressBar:

Inheritance graph
[legend]
Collaboration diagram for SimProgressBar:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SimProgressBar ()
 SimProgressBar (const Time &simtime)
virtual ~SimProgressBar ()
void changeSimulationTime (const Time &simtime)
virtual int reset (double dt)
 Called at the beginning of a simulation at t=0.
virtual int nSpikeInputPorts () const
virtual int nSpikeOutputPorts () const
virtual int nAnalogInputPorts () const
virtual int nAnalogOutputPorts () const
virtual PortType outputPortType (port_t o) const
virtual PortType inputPortType (port_t i) const
virtual int advance (AdvanceInfo const &)
 Calculate the next state and output/propagate the result to succesors/outgoing objects.
virtual double getAnalogOutput (analog_port_id_t port=0) const
 Return the analog value currently associated with the given port.

Protected Attributes

double simulationTime
double prev_progress


Detailed Description

Definition at line 6 of file SimProgressBar.h.


Constructor & Destructor Documentation

SimProgressBar::SimProgressBar (  )  [inline]

Definition at line 10 of file SimProgressBar.h.

SimProgressBar::SimProgressBar ( const Time simtime  ) 

Definition at line 7 of file SimProgressBar.cpp.

SimProgressBar::~SimProgressBar (  )  [virtual]

Definition at line 13 of file SimProgressBar.cpp.


Member Function Documentation

void SimProgressBar::changeSimulationTime ( const Time simtime  ) 

Definition at line 17 of file SimProgressBar.cpp.

References Time::in_sec(), and simulationTime.

Here is the call graph for this function:

int SimProgressBar::reset ( double  dt  )  [virtual]

Called at the beginning of a simulation at t=0.

Reimplemented from SimObject.

Definition at line 22 of file SimProgressBar.cpp.

References prev_progress.

virtual int SimProgressBar::nSpikeInputPorts (  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 24 of file SimProgressBar.h.

virtual int SimProgressBar::nSpikeOutputPorts (  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 25 of file SimProgressBar.h.

virtual int SimProgressBar::nAnalogInputPorts (  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 26 of file SimProgressBar.h.

virtual int SimProgressBar::nAnalogOutputPorts (  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 27 of file SimProgressBar.h.

virtual PortType SimProgressBar::outputPortType ( port_t  o  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 29 of file SimProgressBar.h.

References SimObject::analog, and SimObject::undefined.

virtual PortType SimProgressBar::inputPortType ( port_t  i  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 34 of file SimProgressBar.h.

References SimObject::undefined.

int SimProgressBar::advance ( AdvanceInfo const &   )  [virtual]

Calculate the next state and output/propagate the result to succesors/outgoing objects.

The return value of advance contains several bits of information which can be decoded with the bit masks ADVANCEFLAG_* like ADVANCEFLAG_HASSPIKED and ADVANCEFLAG_DEACTIVATE.

Reimplemented from SimObject.

Definition at line 28 of file SimProgressBar.cpp.

References Time::in_sec(), prev_progress, simulationTime, and AdvanceInfo::t.

Here is the call graph for this function:

double SimProgressBar::getAnalogOutput ( analog_port_id_t  port = 0  )  const [virtual]

Return the analog value currently associated with the given port.

Reimplemented from SimObject.

Definition at line 49 of file SimProgressBar.cpp.

References prev_progress.


Member Data Documentation

Definition at line 44 of file SimProgressBar.h.

Referenced by advance(), and changeSimulationTime().

Definition at line 45 of file SimProgressBar.h.

Referenced by advance(), getAnalogOutput(), and reset().


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

Generated on Wed Jul 9 16:34:53 2008 for PCSIM by  doxygen 1.5.5