histogram


Modules

 Built-in loadshapes
 Schedules
 Schedules are defined as a multiline string.

Functions

EXPORT int create_histogram (OBJECT **obj, OBJECT *parent)
 REQUIRED: allocate and initialize an object.
EXPORT int isa_histogram (OBJECT *obj, char *classname)
 Allows the core to discover whether obj is a subtype of this class.
int parse_bin_val (char *tok, BIN *bin)
 Token parsing to extract bin range.


Function Documentation

EXPORT int create_histogram ( 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 535 of file histogram.cpp.

References gl_create_object, gl_error, gl_set_parent, and OBJECTDATA.

EXPORT int isa_histogram ( 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:
true (1) if obj is a subtype of this class

Definition at line 591 of file histogram.cpp.

References OBJECTDATA.

int parse_bin_val ( char *  tok,
BIN *  bin 
)

Token parsing to extract bin range.

Returns:
0 on error

Definition at line 91 of file histogram.cpp.

References gl_error.


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