Capacitor
[recloser]

Functions

 capacitor::capacitor (MODULE *mod)
 constructor.
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.
EXPORT int isa_capacitor (OBJECT *obj, char *classname)
 Allows the core to discover whether obj is a subtype of this class.
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).

Function Documentation

capacitor::capacitor ( MODULE *  mod  )  [inherited]

constructor.

Class registration is only called once to register the class with the core. Include parent class constructor (node)

Parameters:
mod a module structure maintained by the core

Definition at line 29 of file capacitor.cpp.

EXPORT int create_capacitor ( 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 1969 of file capacitor.cpp.

EXPORT int init_capacitor ( OBJECT *  obj  ) 

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

Parameters:
obj a pointer to this object
Returns:
1 on success, 0 on error

Definition at line 1994 of file capacitor.cpp.

EXPORT int isa_capacitor ( OBJECT *  obj,
char *  classname 
)

Allows the core to discover whether obj is a subtype of this class.

Parameters:
obj a pointer to this object
classname the name of the object the core is testing
Returns:
0 if obj is a subtype of this class

Definition at line 2040 of file capacitor.cpp.

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).

Parameters:
obj the object we are sync'ing
t0 this objects current timestamp
pass the current pass for this sync call
Returns:
t1, where t1>t0 on success, t1=t0 for retry, t1<t0 on failure

Definition at line 2011 of file capacitor.cpp.


GridLAB-D™ Version 4.1
An open-source smart grid simulator created by PNNL for the US Department of Energy Office of Electricity