OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
openswmm::SimulationContext::ControlLogEntry Struct Reference

#include <SimulationContext.hpp>

Collaboration diagram for openswmm::SimulationContext::ControlLogEntry:

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.
 

Detailed Description

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.

Member Data Documentation

◆ date

double openswmm::SimulationContext::ControlLogEntry::date

OADate when the change occurred.

◆ link_idx

int openswmm::SimulationContext::ControlLogEntry::link_idx

Index of the link whose setting changed.

◆ new_setting

double openswmm::SimulationContext::ControlLogEntry::new_setting

The new target setting value (0-1)

◆ rule_idx

int openswmm::SimulationContext::ControlLogEntry::rule_idx

Index into control_rule_names; -1 = unknown ("Rule?")


The documentation for this struct was generated from the following file: