Class VariableMonitorBase

Nested Relationships

Nested Types

Inheritance Relationships

Derived Types

Class Documentation

class VariableMonitorBase

Abstract class for managing output of monitored variables.

This class is used for both the high-level control monitor and the individual component and bus monitors.

Subclassed by GridKit::Model::VariableMonitorController< ScalarT >, GridKit::Model::VariableMonitorController< scalar_type >

Public Types

using Format = VariableMonitorFormat

Short alias for local use.

using Layout = VariableMonitorLayout

Short alias for local use.

using GetterT = std::function<double()>

Returns the current value of a monitored variable.

Public Functions

virtual bool empty() const = 0

Is there nothing to monitor?

struct SinkSpec

Defines information necessary to create a monitor sink.

Public Members

Format format

Output format.

std::string file_name = {}

Output file name (empty for stdout).

std::string delim = {","}

Delimiter (used only with CSV format currently).

Layout layout = {Layout::WIDE}

Table layout.

struct Entry

Monitored variable and the getter of its current value.

Public Members

std::string_view device_class

Device class, such as Genrou.

std::string_view id

Device identifier within its class.

std::string_view variable

Variable name.

GetterT value

Returns the current value.