00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef VOLTAGEPOINT_H
00012 #define VOLTAGEPOINT_H
00013
00014 #include "element.h"
00015
00020 class VoltagePoint : public Element
00021 {
00022 public:
00023 VoltagePoint( const double voltage );
00024 virtual ~VoltagePoint();
00025
00026 virtual Type type() const { return Element_VoltagePoint; }
00027 void setVoltage( const double voltage );
00028 double voltage() { return m_voltage; }
00029 virtual void add_map();
00030
00031 protected:
00032 virtual void updateCurrents();
00033 virtual void add_initial_dc();
00034
00035 private:
00036 double m_voltage;
00037 };
00038
00039 #endif