46 "Current output level.");
53 "Handles process call.",
56 "Handle reinitialization",
58 static Finfo* processShared[] = {
62 "This is a shared message to receive Process messages "
63 "from the scheduler objects."
64 "The first entry in the shared msg is a MsgDest "
65 "for the Process operation. It has a single argument, "
66 "ProcInfo, which holds lots of information about current "
67 "time, thread, dt and so on. The second entry is a MsgDest "
68 "for the Reinit operation. It also uses ProcInfo. ",
70 sizeof( processShared ) /
sizeof(
Finfo* ));
72 "Initial value of 'state'",
76 "Series resistance of the RC circuit.",
80 "Parallel capacitance of the RC circuit.",
84 "Output value of the RC circuit. This is the voltage across the"
88 "Input value to the RC circuit.This is handled as an input current to"
93 "Receives input to the RC circuit. All incoming messages are summed up"
94 " to give the total input current." ,
96 static Finfo* rcFinfos[] = {
106 static string doc[] = {
108 "Author",
"Subhasis Ray, 2008, NCBS",
109 "Description",
"RC circuit: a series resistance R shunted by a capacitance C." };
114 sizeof( rcFinfos ) /
sizeof(
Finfo* ),
117 sizeof(doc)/
sizeof(
string)
void process(const Eref &e, ProcPtr proc)
void setResistance(double resistance)
void reinit(const Eref &e, ProcPtr proc)
void setInjectMsg(double inject)
double getResistance() const
void setCapacitance(double capacitance)
static const Cinfo * rcCinfo
static SrcFinfo1< double > * outputOut()
void setInject(double inject)
static const Cinfo * initCinfo()
void setV0(double voltage)
double getCapacitance() const
static const Cinfo * initCinfo()