Triplex_node
[Network node (bus)]


Functions

int triplex_node::create (void)
EXPORT int create_triplex_node (OBJECT **obj, OBJECT *parent)
 REQUIRED: allocate and initialize an object.
int triplex_node::init (OBJECT *parent=NULL)
EXPORT int init_triplex_node (OBJECT *obj)
 Object initialization is called once after all object have been created.
int triplex_node::isa (char *classname)
EXPORT int isa_triplex_node (OBJECT *obj, char *classname)
TIMESTAMP triplex_node::postsync (TIMESTAMP t0)
TIMESTAMP triplex_node::sync (TIMESTAMP t0)
EXPORT TIMESTAMP sync_triplex_node (OBJECT *obj, TIMESTAMP t0, PASSCONFIG pass)
 Sync is called when the clock needs to advance on the bottom-up pass (PC_BOTTOMUP).
 triplex_node::triplex_node (MODULE *mod)

Variables

static triplex_nodetriplex_node::defaults = NULL
static CLASStriplex_node::oclass = NULL
static CLASStriplex_node::pclass = NULL


Function Documentation

EXPORT int create_triplex_node ( OBJECT **  obj,
OBJECT parent 
)

REQUIRED: allocate and initialize an object.

Parameters:
obj a pointer to a pointer of the last object in the list
parent a pointer to the parent of this object
Returns:
1 for a successfully created object, 0 for error

Definition at line 87 of file triplex_node.cpp.

References create(), gl_create_object, gl_error, gl_set_parent, OBJECTDATA, and oclass.

EXPORT int init_triplex_node ( OBJECT obj  ) 

Object initialization is called once after all object have been created.

Parameters:
parent a pointer to this object's parent
Returns:
1 on success, 0 on error

Definition at line 112 of file triplex_node.cpp.

References powerflow_object::get_id(), powerflow_object::get_name(), GL_THROW, init(), and OBJECTDATA.

EXPORT TIMESTAMP sync_triplex_node ( OBJECT obj,
TIMESTAMP  t0,
PASSCONFIG  pass 
)

Sync is called when the clock needs to advance on the bottom-up pass (PC_BOTTOMUP).

Parameters:
t0 this objects current timestamp
t1 the timestamp which the object should move forward to
Returns:
t2, where t2>t1 on success, t2=t1 for retry, t2<t1 on failure

Definition at line 132 of file triplex_node.cpp.

References s_object_list::clock, powerflow_object::get_id(), powerflow_object::get_name(), GL_THROW, OBJECTDATA, PC_BOTTOMUP, PC_POSTTOPDOWN, postsync(), and sync().


GridLAB-DTM Version 1.0
An open-source project initiated by the US Department of Energy