Functions | |
| capacitor::capacitor (MODULE *mod) | |
| constructor. | |
| int | capacitor::create (void) |
| EXPORT int | create_capacitor (OBJECT **obj, OBJECT *parent) |
| REQUIRED: allocate and initialize an object. | |
| EXPORT int | init_capacitor (OBJECT *obj) |
| Object initialization is called once after all object have been created. | |
| int | capacitor::isa (char *classname) |
| EXPORT int | isa_capacitor (OBJECT *obj, char *classname) |
| Allows the core to discover whether obj is a subtype of this class. | |
| TIMESTAMP | capacitor::postsync (TIMESTAMP t0) |
| TIMESTAMP | capacitor::sync (TIMESTAMP t0) |
| EXPORT TIMESTAMP | sync_capacitor (OBJECT *obj, TIMESTAMP t0, PASSCONFIG pass) |
| Sync is called when the clock needs to advance on the bottom-up pass (PC_BOTTOMUP). | |
Variables | |
| static capacitor * | capacitor::defaults = NULL |
| static CLASS * | capacitor::oclass = NULL |
| static CLASS * | capacitor::pclass = NULL |
| capacitor::capacitor | ( | MODULE * | mod | ) | [inherited] |
constructor.
Class registration is only called once to register the class with the core. Include parent class constructor (node)
| module | a module structure maintained by the core |
Definition at line 29 of file capacitor.cpp.
References CLOSED, control, defaults, gl_publish_variable, gl_register_class, GL_THROW, MANUAL, node::oclass, oclass, OPEN, PADDR, PC_BOTTOMUP, PC_POSTTOPDOWN, pclass, PHASE_A, PHASE_B, PHASE_C, PHASE_D, PHASE_N, PHASE_S, node::phaseA_V, node::phaseB_V, node::phaseC_V, powerflow_object::phases, PT_complex, PT_double, PT_enumeration, PT_KEYWORD, pt_phase, pt_ratio, PT_set, switch_state, node::sync_V_limit, time_delay, time_to_change, VAR, var_close, var_open, VARVOLT, VOLT, volt_close, and volt_open.
REQUIRED: allocate and initialize an object.
| obj | a pointer to a pointer of the last object in the list | |
| parent | a pointer to the parent of this object |
Definition at line 150 of file capacitor.cpp.
References create(), gl_create_object, gl_error, gl_set_parent, OBJECTDATA, and oclass.
| EXPORT int init_capacitor | ( | OBJECT * | obj | ) |
Object initialization is called once after all object have been created.
| parent | a pointer to this object's parent |
Definition at line 177 of file capacitor.cpp.
References powerflow_object::get_id(), powerflow_object::get_name(), GL_THROW, node::init(), OBJECTDATA, and s_object_list::parent.
| EXPORT int isa_capacitor | ( | OBJECT * | obj, | |
| char * | classname | |||
| ) |
Allows the core to discover whether obj is a subtype of this class.
| obj | a pointer to this object | |
| classname | the name of the object the core is testing |
Definition at line 231 of file capacitor.cpp.
References OBJECTDATA.
Reimplemented from node.
Definition at line 89 of file capacitor.cpp.
References CLOSED, control, MANUAL, switch_state, node::sync(), VAR, VARVOLT, and VOLT.
Referenced by sync_capacitor().
| EXPORT TIMESTAMP sync_capacitor | ( | OBJECT * | obj, | |
| TIMESTAMP | t0, | |||
| PASSCONFIG | pass | |||
| ) |
Sync is called when the clock needs to advance on the bottom-up pass (PC_BOTTOMUP).
| t0 | this objects current timestamp | |
| t1 | the timestamp which the object should move forward to |
Definition at line 197 of file capacitor.cpp.
References s_object_list::clock, powerflow_object::get_id(), powerflow_object::get_name(), GL_THROW, OBJECTDATA, PC_BOTTOMUP, PC_POSTTOPDOWN, PC_PRETOPDOWN, postsync(), node::presync(), sync(), and TS_NEVER.