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