#include <SimProgressBar.h>
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 |
Definition at line 6 of file SimProgressBar.h.
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.
void SimProgressBar::changeSimulationTime | ( | const Time & | simtime | ) |
Definition at line 17 of file SimProgressBar.cpp.
References Time::in_sec(), and simulationTime.
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] |
virtual int SimProgressBar::nSpikeOutputPorts | ( | ) | const [inline, virtual] |
virtual int SimProgressBar::nAnalogInputPorts | ( | ) | const [inline, virtual] |
virtual int SimProgressBar::nAnalogOutputPorts | ( | ) | const [inline, virtual] |
Reimplemented from SimObject.
Definition at line 29 of file SimProgressBar.h.
References SimObject::analog, and SimObject::undefined.
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.
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.
double SimProgressBar::simulationTime [protected] |
Definition at line 44 of file SimProgressBar.h.
Referenced by advance(), and changeSimulationTime().
double SimProgressBar::prev_progress [protected] |
Definition at line 45 of file SimProgressBar.h.
Referenced by advance(), getAnalogOutput(), and reset().