00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 #ifndef _RC_H
00042 #define _RC_H
00043
00044 #include "../basecode/header.h"
00045
00046 class RC{
00047 public:
00048 RC();
00049 void setV0(double voltage);
00050 double getV0() const;
00051 void setResistance(double resistance);
00052 double getResistance() const;
00053 void setCapacitance(double capacitance);
00054 double getCapacitance() const;
00055 double getState() const;
00056 void setInject(double inject);
00057 double getInject() const;
00058 void setInjectMsg(double inject);
00059 void process(const Eref& e, ProcPtr proc);
00060 void reinit(const Eref& e, ProcPtr proc);
00061 static const Cinfo * initCinfo();
00062 private:
00063 double v0_;
00064 double resistance_;
00065 double capacitance_;
00066 double state_;
00067 double inject_;
00068 double msg_inject_;
00069 double exp_;
00070 double dt_tau_;
00071 };
00072
00073 #endif
00074
00075
00076
00077