Expand description
A generic mechanism for storing context-wide data.
Global properties are not mutable and represent variables that are
required in a global scope during the simulation, such as
simulation parameters.
A global property can be of any type, and is is just a value
stored in the context. Global properties are defined by the
define_global_property!()
macro and can then be
set in one of two ways:
- Directly by using
Context::set_global_property_value()
- Loaded from a configuration file using
Context::load_global_properties()
Attempting to change a global property which has been set already will result in an error.
Global properties can be read with Context::get_global_property_value()
Macros§
- define_
global_ property - Defines a global property with the following parameters:
Structs§
Traits§
- Context
Global Properties Ext - Global
Property - The trait representing a global property. Do not use this
directly, but instead define global properties with
[
define_global_property()
]