Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

Element Class Reference

#include <element.h>

Inheritance diagram for Element:

CCCS CCVS CurrentSource LogicIn NonLinear OpAmp Reactive Resistance VCCS VCVS VoltagePoint VoltageSource

List of all members.

Detailed Description

Represents a circuit element (such as resistance).

David Saxton

Definition at line 78 of file element.h.

Public Types

enum  Type {
  Element_BJT, Element_Capacitance, Element_CCCS, Element_CCVS,
  Element_CurrentSignal, Element_CurrentSource, Element_Diode, Element_JFET,
  Element_Inductance, Element_LogicIn, Element_LogicOut, Element_MOSFET,
  Element_OpAmp, Element_Resistance, Element_VCCS, Element_VCVS,
  Element_VoltagePoint, Element_VoltageSignal, Element_VoltageSource

Public Member Functions

virtual void add_initial_dc ()=0
CBranch * cbranch (const uint num)
double cbranchCurrent (const int branch)
CNode * cnode (const uint num)
double cnodeVoltage (const int node)
void componentDeleted ()
ElementSetelementSet () const
void elementSetDeleted ()
virtual bool isNonLinear () const
virtual bool isReactive () const
int numCBranches () const
int numCNodes () const
void setCBranches (const int b0=noBranch, const int b1=noBranch, const int b2=noBranch, const int b3=noBranch)
void setCNodes (const int n0=noCNode, const int n1=noCNode, const int n2=noCNode, const int n3=noCNode)
virtual void setElementSet (ElementSet *c)
virtual Type type () const =0
virtual void updateCurrents ()=0

Public Attributes

double m_cnodeI [8]
 Current flowing into the cnodes from the element.

Protected Member Functions

double & A_b (uint i, uint j)
double & A_c (uint i, uint j)
double & A_d (uint i, uint j)
double & A_g (uint i, uint j)
double & b_i (uint i)
double & b_v (uint i)
void resetCurrents ()
virtual bool updateStatus ()

Protected Attributes

bool b_status
int m_numCBranches
int m_numCNodes
CBranch * p_cbranch [MAX_CBRANCHES]
CNode * p_cnode [MAX_CNODES]

Private Attributes

bool b_componentDeleted
double m_temp

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

Generated by  Doxygen 1.6.0   Back to index