#include <reactive.h>
Inheritance diagram for Reactive:


Public Member Functions | |
| Reactive (const double delta) | |
| virtual | ~Reactive () |
| virtual bool | isReactive () |
| void | setDelta (double delta) |
| virtual void | time_step ()=0 |
Protected Member Functions | |
| virtual bool | updateStatus () |
Protected Attributes | |
| double | m_delta |
Definition at line 20 of file reactive.h.
| virtual bool Reactive::isReactive | ( | ) | [inline, virtual] |
Returns true for reactive elements that need stepping for numerical-integration (such as capacitors)
Reimplemented from Element.
Definition at line 26 of file reactive.h.
| void Reactive::setDelta | ( | double | delta | ) |
Call this function to set the time period (in seconds)
Definition at line 26 of file reactive.cpp.
References m_delta, and updateStatus().
| virtual void Reactive::time_step | ( | ) | [pure virtual] |
Called on every time step for the element to update itself
Implemented in Capacitance, CurrentSignal, Inductance, and VoltageSignal.
| bool Reactive::updateStatus | ( | ) | [protected, virtual] |
Update the status, returning b_status
Reimplemented from Element.
Reimplemented in Capacitance, and Inductance.
Definition at line 33 of file reactive.cpp.
References Element::updateStatus().
Referenced by setDelta(), Inductance::updateStatus(), and Capacitance::updateStatus().
1.5.1