Net Class Reference

Connect Pins to each other and transfers a output change from a pin to input values for all pins. More...

#include <net.h>

Inheritance diagram for Net:
Inheritance graph
[legend]
Collaboration diagram for Net:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~Net ()
 Destructor, disconnects save all pins, which are connected.
void Add (Pin *p)
 Add a pin to net, e.g. connect a pin to others.
virtual void Delete (Pin *p)
virtual bool CalcNet ()
 Calculate a "electrical potential" on the net and set all pin inputs with this value.

Friends

void Pin::RegisterNet (Net *)

Detailed Description

Connect Pins to each other and transfers a output change from a pin to input values for all pins.

Definition at line 34 of file net.h.


Constructor & Destructor Documentation

Net::~Net (  )  [virtual]

Destructor, disconnects save all pins, which are connected.

Definition at line 45 of file net.cpp.


Member Function Documentation

void Net::Add ( Pin p  ) 

Add a pin to net, e.g. connect a pin to others.

Definition at line 29 of file net.cpp.

References CalcNet(), and Pin::RegisterNet().

Here is the call graph for this function:

bool Net::CalcNet (  )  [virtual]

Calculate a "electrical potential" on the net and set all pin inputs with this value.

Definition at line 50 of file net.cpp.

References Pin::SetInState(), and Pin::TRISTATE.

Referenced by Add(), Pin::CalcPin(), AdcAnalogPin::setAnalogValue(), ExtAnalogPin::SetNewValueFromUi(), and ExtPin::SetNewValueFromUi().

Here is the call graph for this function:

Here is the caller graph for this function:

void Net::Delete ( Pin p  )  [virtual]

Remove a pin from net

Definition at line 35 of file net.cpp.

Referenced by Pin::UnRegisterNet().

Here is the caller graph for this function:


Friends And Related Function Documentation

void Pin::RegisterNet ( Net  )  [friend]

The documentation for this class was generated from the following files:
Generated on Sun Feb 12 16:52:53 2012 for Simulavr by  doxygen 1.6.3