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

LogicOut Class Reference

#include <logic.h>

Inheritance diagram for LogicOut:

LogicIn Element

List of all members.

Detailed Description

Logic output/input.

Definition at line 114 of file logic.h.

Public Types

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

Public Member Functions

virtual void add_map ()
void callCallback ()
CBranch * cbranch (const uint num)
double cbranchCurrent (const int branch)
void check ()
CNode * cnode (const uint num)
double cnodeVoltage (const int node)
void componentDeleted ()
ElementSetelementSet ()
void elementSetDeleted ()
bool isHigh () const
virtual bool isNonLinear ()
virtual bool isReactive ()
 LogicOut (LogicConfig config, bool _high)
LogicOutnextChanged (unsigned char chain) const
LogicInnextLogic () const
int numCBranches ()
int numCNodes ()
double outputHighVoltage () const
bool outputState () const
void setCallback (CallbackClass *object, CallbackPtr func)
void setCanAddChanged (bool canAdd)
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)
void setHigh (bool high)
void setLastState (bool state)
virtual void setLogic (LogicConfig config)
void setNextChanged (LogicOut *logicOut, unsigned char chain)
void setNextLogic (LogicIn *next)
void setOutputHighConductance (double g)
void setOutputHighVoltage (double v)
void setOutputLowConductance (double g)
void setUseLogicChain (bool use)
virtual Type type () const

Static Public Member Functions

static LogicConfig getConfig ()

Public Attributes

double m_cnodeI [8]
 Current flowing into the cnodes from the element.
PinList pinList
PinList::iterator pinListBegin
PinList::iterator pinListEnd

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)
virtual void add_initial_dc ()
double & b_i (uint i)
double & b_v (uint i)
void configChanged ()
void resetCurrents ()
virtual void updateCurrents ()
virtual bool updateStatus ()

Protected Attributes

bool b_state
bool b_status
bool m_bCanAddChanged
bool m_bLastState
bool m_bOutputHighConductanceConst
bool m_bOutputHighVoltageConst
bool m_bOutputLowConductanceConst
bool m_bUseLogicChain
LogicConfig m_config
double m_g_out
double m_gHigh
double m_gLow
int m_numCBranches
int m_numCNodes
double m_old_g_out
double m_old_v_out
CallbackPtr m_pCallbackFunction
CallbackClass * m_pCallbackObject
LogicOutm_pNextChanged [2]
double m_v_out
double m_vHigh
CBranch * p_cbranch [4]
CNode * p_cnode [MAX_CNODES]

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

Generated by  Doxygen 1.6.0   Back to index