Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CVoltage Class Reference

Klasa reprezentuje idealne zrodlo napieciowe. More...

#include <CVoltage.hh>

Inheritance diagram for CVoltage:

CElementActive CElement List of all members.

Public Member Functions

 CVoltage (std::string name, float u, double omega, double fi0, int x=0, int y=0, int rot=0)
 Konstruktor.
 ~CVoltage ()
 Destruktor.
float getU (void)
 Funkcja zwraca wartosc napiecia.
Complex getUc (void)
 Funkcja zwraca wartosc zespolona napiecia.
double getValue ()
 Zwarca wartosc elementu.
void setU (float u)
 Ustawia wartosc napiecia.
void draw ()
 Rysuje element.
int getPinX (int pinNumber)
 Zwraca wspolrzedna x pinu o podanym numerze.
int getPinY (int pinNumber)
 Zwraca wspolrzedna y pinu o podanym numerze.

Protected Attributes

float m_u
 wartosc napiecia

Detailed Description

Klasa reprezentuje idealne zrodlo napieciowe.


Constructor & Destructor Documentation

CVoltage::CVoltage std::string  name,
float  u,
double  omega,
double  fi0,
int  x = 0,
int  y = 0,
int  rot = 0
[inline]
 

Konstruktor.

Parameters:
name nazwa .
u wartosc napiecia [A].
omega czestosc kolowa [Hz].
fi0 faza poczatkowa.
x rzedna elementu na schemacie.
y odcieta elementu na schemacie.
rot rotacja elementu na schemacie.
See also:
~CVoltage();CElementActive();

CVoltage::~CVoltage  )  [inline]
 

Destruktor.

See also:
CVoltage();


Member Function Documentation

void CVoltage::draw  )  [virtual]
 

Rysuje element.

Reimplemented from CElement.

int CVoltage::getPinX int  pinNumber  )  [virtual]
 

Zwraca wspolrzedna x pinu o podanym numerze.

Parameters:
pinNumber 0 dla przodu, 1 dla tylu elementu`
Returns:
wspolrzedna x pinu

Reimplemented from CElement.

int CVoltage::getPinY int  pinNumber  )  [virtual]
 

Zwraca wspolrzedna y pinu o podanym numerze.

Parameters:
pinNumber 0 dla przodu, 1 dla tylu elementu`
Returns:
wspolrzedna y pinu

Reimplemented from CElement.

float CVoltage::getU void   )  [inline]
 

Funkcja zwraca wartosc napiecia.

Returns:
wartosc napiecia
See also:
getUc();

Complex CVoltage::getUc void   )  [inline]
 

Funkcja zwraca wartosc zespolona napiecia.

Returns:
wartosc napiecia
See also:
getU();

double CVoltage::getValue  )  [inline, virtual]
 

Zwarca wartosc elementu.

Dla rezystora opornosc R, dla cewki indukcje L, dla kondensatora pojemnosc C, etc. Jesli nie mozna zwrocic wartosci (np nie ma czego zwaracac) zwracane jest zero.

Returns:
wartosc wielkosci charakteryzujacej element

Reimplemented from CElement.

void CVoltage::setU float  u  )  [inline]
 

Ustawia wartosc napiecia.

Parameters:
u nowa wartosc napiecia
See also:
getI();


Member Data Documentation

float CVoltage::m_u [protected]
 

wartosc napiecia


The documentation for this class was generated from the following files:
Generated on Sun Jan 16 11:05:59 2005 for RolLerCoaster by  doxygen 1.3.9.1