Battery
[Generators]


Functions

int battery::init (OBJECT *parent)
TIMESTAMP battery::sync (TIMESTAMP t0, TIMESTAMP t1)


Function Documentation

int battery::init ( OBJECT parent  )  [inherited]

Todo:
use triplex property mapping instead of assuming memory order for meter variables (residential, low priority) (ticket #139)

Definition at line 179 of file battery.cpp.

References GETADDR, gl_find_next, gl_find_objects, gl_get_property, gl_object_isa, gl_random_normal, gl_set_dependent, GL_THROW, gl_warning, OBJECTDATA, OBJECTHDR, PHASE_A, PHASE_B, and PHASE_C.

TIMESTAMP battery::sync ( TIMESTAMP  t0,
TIMESTAMP  t1 
) [inherited]

need to use timestamp_to_hours from the core, not here, how to reference core?

Definition at line 511 of file battery.cpp.

References GL_THROW, gl_tohours, and gl_warning.


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