The reset time is determined by
.
Five relay curves are supported:
The current curves are implemented according to SEL-551 Instruction Manual (Google that)
Functions | |
| int | relay::create (void) |
| EXPORT int | create_relay (OBJECT **obj, OBJECT *parent) |
| REQUIRED: allocate and initialize an object. | |
| int | relay::init (void) |
| EXPORT int | init_relay (OBJECT *obj) |
| Object initialization is called once after all object have been created. | |
| int | relay::isa (char *classname) |
| EXPORT int | isa_relay (OBJECT *obj, char *classname) |
| TIMESTAMP | relay::postsync (TIMESTAMP t0) |
| relay::relay (MODULE *mod) | |
| TIMESTAMP | relay::sync (TIMESTAMP t0) |
| EXPORT TIMESTAMP | sync_relay (OBJECT *obj, TIMESTAMP t0) |
| EXPORT TIMESTAMP | sync_relay (OBJECT *obj, TIMESTAMP t0, PASSCONFIG pass) |
| Sync is called when the clock needs to advance on the bottom-up pass (PC_BOTTOMUP). | |
Variables | |
| static relay * | relay::defaults = NULL |
| static CLASS * | relay::oclass = NULL |
| static CLASS * | relay::pclass = NULL |
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 189 of file relay.cpp.
References create(), gl_create_object, gl_error, gl_set_parent, OBJECTDATA, and oclass.
| EXPORT int init_relay | ( | OBJECT * | obj | ) |
Object initialization is called once after all object have been created.
| parent | a pointer to this object's parent |
Definition at line 214 of file relay.cpp.
References powerflow_object::get_id(), powerflow_object::get_name(), GL_THROW, init(), and OBJECTDATA.
| EXPORT TIMESTAMP sync_relay | ( | 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 234 of file relay.cpp.
References s_object_list::clock, powerflow_object::get_id(), powerflow_object::get_name(), GL_THROW, OBJECTDATA, PC_BOTTOMUP, postsync(), and sync().