Property management
[Runtime module API]


Detailed Description

Use the property management functions to provide and gain access to published variables from other modules.

This include getting property information and unit conversion.


Defines

#define gl_convert   (*callback->unit_convert)
 Convert the units of a property using unit name.
#define gl_convert_ex   (*callback->unit_convert_ex)
 Convert the units of a property using unit data.
#define gl_get_complex   (*callback->objvar.complex_var)
 Retrieve the complex value associated with the property.
#define gl_get_property   (*callback->properties.get_property)
 Get a property of an object.
#define gl_get_reference   (*callback->properties.get_reference)
 Get a reference to another object.
#define gl_get_unit   (*callback->properties.get_unit)
 Get unit of property.
#define gl_get_value   (*callback->properties.get_value_by_addr)
 Get the value of a property in an object.
#define gl_get_value_by_name   (*callback->properties.get_value_by_name)
 Get the value of a property in an object.
#define gl_publish_delegate   (*callback->define_type)
 Publish an delegate property type for a class.
#define gl_register_type   (*callback->register_type)
 Create an object.
#define gl_set_value   (*callback->properties.set_value_by_addr)
 Set the value of a property in an object.
#define gl_set_value_by_name   (*callback->properties.set_value_by_name)
 Set the value of a property in an object.


Define Documentation

#define gl_convert   (*callback->unit_convert)

Convert the units of a property using unit name.

See also:
unit_convert()

Definition at line 596 of file gridlabd.h.

#define gl_convert_ex   (*callback->unit_convert_ex)

Convert the units of a property using unit data.

See also:
unit_convert_ex()

Definition at line 601 of file gridlabd.h.

#define gl_get_complex   (*callback->objvar.complex_var)

Retrieve the complex value associated with the property.

See also:
object_get_complex()

Definition at line 616 of file gridlabd.h.

#define gl_get_property   (*callback->properties.get_property)

#define gl_get_reference   (*callback->properties.get_reference)

Get a reference to another object.

See also:
object_get_reference()

Definition at line 558 of file gridlabd.h.

#define gl_get_unit   (*callback->properties.get_unit)

Get unit of property.

See also:
object_get_unit()

Definition at line 591 of file gridlabd.h.

#define gl_get_value   (*callback->properties.get_value_by_addr)

Get the value of a property in an object.

See also:
object_get_value_by_addr()

Definition at line 509 of file gridlabd.h.

#define gl_get_value_by_name   (*callback->properties.get_value_by_name)

Get the value of a property in an object.

See also:
object_get_value_by_name()

Definition at line 570 of file gridlabd.h.

#define gl_publish_delegate   (*callback->define_type)

Publish an delegate property type for a class.

Note:
This is not supported in Version 1.

Definition at line 485 of file gridlabd.h.

#define gl_register_type   (*callback->register_type)

Create an object.

See also:
class_register()

Definition at line 480 of file gridlabd.h.

#define gl_set_value   (*callback->properties.set_value_by_addr)

Set the value of a property in an object.

See also:
object_set_value_by_addr()

Definition at line 523 of file gridlabd.h.

#define gl_set_value_by_name   (*callback->properties.set_value_by_name)

Set the value of a property in an object.

See also:
object_set_value_by_name()

Definition at line 586 of file gridlabd.h.


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