![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
#include <SimulationContext.hpp>
Public Attributes | |
| int | link_idx |
| Index of the link whose setting changed. | |
| int | rule_idx |
| Index into control_rule_names; -1 = unknown ("Rule?") | |
| double | new_setting |
| The new target setting value (0-1) | |
| double | date |
| OADate when the change occurred. | |
One entry per control rule action that changed a link setting. POD: the rule NAME is interned in control_rule_names (index rule_idx), so a deck that toggles a pump every routing step does not heap-allocate a string per action — this log is only drained at report time.
| double openswmm::SimulationContext::ControlLogEntry::date |
OADate when the change occurred.
| int openswmm::SimulationContext::ControlLogEntry::link_idx |
Index of the link whose setting changed.
| double openswmm::SimulationContext::ControlLogEntry::new_setting |
The new target setting value (0-1)
| int openswmm::SimulationContext::ControlLogEntry::rule_idx |
Index into control_rule_names; -1 = unknown ("Rule?")