Reactive Class Reference

Represents a reactive element (such as a capacitor). More...

#include <reactive.h>

Inheritance diagram for Reactive:

Inheritance graph
[legend]
Collaboration diagram for Reactive:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Represents a reactive element (such as a capacitor).

Author:
David Saxton

Definition at line 20 of file reactive.h.


Member Function Documentation

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().


The documentation for this class was generated from the following files:
Generated on Tue May 8 17:05:56 2007 for KTechLab by  doxygen 1.5.1