DSS C-API and dss.hpp
DSS C-API and dss.hpp expose a customized and extended implementation of OpenDSS to C and C++.
dss::obj::MonitorBatch Class Reference
Inheritance diagram for dss::obj::MonitorBatch:
[legend]
Collaboration diagram for dss::obj::MonitorBatch:
[legend]

Public Types

typedef Monitor::Properties Properties
 
typedef Monitor BatchElementClass
 
typedef Monitor::MonitorAction MonitorAction
 

Public Member Functions

 MonitorBatch (APIUtil *util)
 Create a batch of all Monitor elements.
 
 MonitorBatch (APIUtil *util, int32_t prop_idx, int32_t prop_value)
 Create a batch of all Monitor elements that match an integer property value.
 
 MonitorBatch (APIUtil *util, const char *regexp)
 Create a batch of all Monitor elements that match a regular expression.
 
MonitorBatchbegin_edit ()
 
MonitorBatchend_edit (int32_t num_edits=1)
 
strings element ()
 Name (Full Object name) of element to which the monitor is connected. More...
 
MonitorBatchelement (dss::obj::DSSObj &value)
 
MonitorBatchelement (const string &value)
 
std::vector< dss::obj::DSSObjelement_obj ()
 Name (Full Object name) of element to which the monitor is connected. More...
 
MonitorBatchelement_obj (dss::obj::DSSObj &value)
 
BatchInt32ArrayProxy terminal ()
 Number of the terminal of the circuit element to which the monitor is connected. More...
 
MonitorBatchterminal (int32_t value)
 
template<typename T >
MonitorBatchterminal (T &value)
 
template<typename T >
MonitorBatchterminal (typename T::iterator it_begin, typename T::iterator it_end)
 
BatchInt32ArrayProxy mode ()
 Bitmask integer designating the values the monitor is to capture: 0 = Voltages and currents at designated terminal 1 = Powers at designated terminal 2 = Tap Position (Transformer Device only) 3 = State Variables (PCElements only) 4 = Flicker level and severity index (Pst) for voltages. More...
 
MonitorBatchmode (int32_t value)
 
template<typename T >
MonitorBatchmode (T &value)
 
template<typename T >
MonitorBatchmode (typename T::iterator it_begin, typename T::iterator it_end)
 
MonitorBatchaction (int32_t value)
 {Clear | Save | Take | Process} (C)lears or (S)aves current buffer. More...
 
MonitorBatchaction (Monitor::MonitorAction value)
 {Clear | Save | Take | Process} (C)lears or (S)aves current buffer. More...
 
MonitorBatchaction (const string &value)
 {Clear | Save | Take | Process} (C)lears or (S)aves current buffer. More...
 
MonitorBatchaction (const char *value)
 {Clear | Save | Take | Process} (C)lears or (S)aves current buffer. More...
 
bools residual ()
 {Yes/True | No/False} Default = No. More...
 
MonitorBatchresidual (bool value)
 
MonitorBatchresidual (bools &value)
 
bools VIPolar ()
 {Yes/True | No/False} Default = YES. More...
 
MonitorBatchVIPolar (bool value)
 
MonitorBatchVIPolar (bools &value)
 
bools PPolar ()
 {Yes/True | No/False} Default = YES. More...
 
MonitorBatchPPolar (bool value)
 
MonitorBatchPPolar (bools &value)
 
BatchFloat64ArrayProxy basefreq ()
 Base Frequency for ratings. More...
 
MonitorBatchbasefreq (double value)
 
template<typename T >
MonitorBatchbasefreq (T &value)
 
template<typename T >
MonitorBatchbasefreq (typename T::iterator it_begin, typename T::iterator it_end)
 
bools enabled ()
 {Yes|No or True|False} Indicates whether this element is enabled. More...
 
MonitorBatchenabled (bool value)
 
MonitorBatchenabled (bools &value)
 
MonitorBatchlike (const string &value)
 Make like another object, e.g. More...
 
MonitorBatchlike (const char *value)
 Make like another object, e.g. More...
 
- Public Member Functions inherited from dss::obj::DSSBatch
 DSSBatch (APIUtil *util, int32_t cls_idx)
 Create a batch of all elements in the DSS class.
 
 DSSBatch (APIUtil *util, int32_t cls_idx, int32_t prop_idx, int32_t prop_value)
 Create a batch of all elements that match an integer property value.
 
 DSSBatch (APIUtil *util, int32_t cls_idx, const char *regexp)
 Create a batch of all elements that match a regular expression.
 
 DSSBatch (APIUtil *util)
 Create an uninitialized batch instance.
 
strings name ()
 

Additional Inherited Members

- Public Attributes inherited from dss::obj::DSSBatch
APIUtilapi_util
 
void ** pointer
 
int32_t count [2]
 
- Protected Member Functions inherited from dss::obj::DSSBatch
void check_for_error ()
 
bools get_batch_bool (int32_t index)
 
std::vector< complex > get_batch_complex (int32_t index)
 
template<typename T = VectorXd>
std::vector< T > get_batch_valarray (int32_t index)
 
void set_batch_complex_for_each (int32_t index, std::vector< complex > &values)
 
template<typename T >
void set_batch_val (int32_t index, const T &value)
 
template<typename T = VectorXd>
get_batch_val (int32_t index)
 
template<typename T >
void set_batch_val_for_each (int32_t index, typename T::iterator v, typename T::iterator v_end)
 
- Static Protected Member Functions inherited from dss::obj::DSSBatch
template<typename T = VectorXd>
static T get_batch_val (int32_t index, DSSBatch &batch)
 

Member Function Documentation

◆ action() [1/4]

MonitorBatch & dss::obj::MonitorBatch::action ( const char *  value)
inline

{Clear | Save | Take | Process} (C)lears or (S)aves current buffer.

(T)ake action takes a sample. (P)rocesses the data taken so far (e.g. Pst for mode 4).

Note that monitors are automatically reset (cleared) when the Set Mode= command is issued. Otherwise, the user must explicitly reset all monitors (reset monitors command) or individual monitors with the Clear action.

DSS property name: action, DSS property index: 4

◆ action() [2/4]

MonitorBatch & dss::obj::MonitorBatch::action ( const string &  value)
inline

{Clear | Save | Take | Process} (C)lears or (S)aves current buffer.

(T)ake action takes a sample. (P)rocesses the data taken so far (e.g. Pst for mode 4).

Note that monitors are automatically reset (cleared) when the Set Mode= command is issued. Otherwise, the user must explicitly reset all monitors (reset monitors command) or individual monitors with the Clear action.

DSS property name: action, DSS property index: 4

◆ action() [3/4]

MonitorBatch & dss::obj::MonitorBatch::action ( int32_t  value)
inline

{Clear | Save | Take | Process} (C)lears or (S)aves current buffer.

(T)ake action takes a sample. (P)rocesses the data taken so far (e.g. Pst for mode 4).

Note that monitors are automatically reset (cleared) when the Set Mode= command is issued. Otherwise, the user must explicitly reset all monitors (reset monitors command) or individual monitors with the Clear action.

DSS property name: action, DSS property index: 4

◆ action() [4/4]

MonitorBatch & dss::obj::MonitorBatch::action ( Monitor::MonitorAction  value)
inline

{Clear | Save | Take | Process} (C)lears or (S)aves current buffer.

(T)ake action takes a sample. (P)rocesses the data taken so far (e.g. Pst for mode 4).

Note that monitors are automatically reset (cleared) when the Set Mode= command is issued. Otherwise, the user must explicitly reset all monitors (reset monitors command) or individual monitors with the Clear action.

DSS property name: action, DSS property index: 4

◆ basefreq()

BatchFloat64ArrayProxy dss::obj::MonitorBatch::basefreq ( )
inline

Base Frequency for ratings.

DSS property name: basefreq, DSS property index: 8

◆ element()

strings dss::obj::MonitorBatch::element ( )
inline

Name (Full Object name) of element to which the monitor is connected.

DSS property name: element, DSS property index: 1

◆ element_obj()

std::vector< dss::obj::DSSObj > dss::obj::MonitorBatch::element_obj ( )
inline

Name (Full Object name) of element to which the monitor is connected.

DSS property name: element, DSS property index: 1

◆ enabled()

bools dss::obj::MonitorBatch::enabled ( )
inline

{Yes|No or True|False} Indicates whether this element is enabled.

DSS property name: enabled, DSS property index: 9

◆ like() [1/2]

MonitorBatch & dss::obj::MonitorBatch::like ( const char *  value)
inline

Make like another object, e.g.

:

New Capacitor.C2 like=c1 ...

DSS property name: like, DSS property index: 10

◆ like() [2/2]

MonitorBatch & dss::obj::MonitorBatch::like ( const string &  value)
inline

Make like another object, e.g.

:

New Capacitor.C2 like=c1 ...

DSS property name: like, DSS property index: 10

◆ mode()

BatchInt32ArrayProxy dss::obj::MonitorBatch::mode ( )
inline

Bitmask integer designating the values the monitor is to capture: 0 = Voltages and currents at designated terminal 1 = Powers at designated terminal 2 = Tap Position (Transformer Device only) 3 = State Variables (PCElements only) 4 = Flicker level and severity index (Pst) for voltages.

No adders apply. Flicker level at simulation time step, Pst at 10-minute time step. 5 = Solution variables (Iterations, etc). Normally, these would be actual phasor quantities from solution. 6 = Capacitor Switching (Capacitors only) 7 = Storage state vars (Storage device only) 8 = All winding currents (Transformer device only) 9 = Losses, watts and var (of monitored device) 10 = All Winding voltages (Transformer device only) Normally, these would be actual phasor quantities from solution. 11 = All terminal node voltages and line currents of monitored device 12 = All terminal node voltages LL and line currents of monitored device Combine mode with adders below to achieve other results for terminal quantities: +16 = Sequence quantities +32 = Magnitude only +64 = Positive sequence only or avg of all phases

Mix adder to obtain desired results. For example: Mode=112 will save positive sequence voltage and current magnitudes only Mode=48 will save all sequence voltages and currents, but magnitude only.

DSS property name: mode, DSS property index: 3

◆ PPolar()

bools dss::obj::MonitorBatch::PPolar ( )
inline

{Yes/True | No/False} Default = YES.

Report power in Apparent power, S, in polar form (Mag/Angle).(default) Otherwise, is P and Q

DSS property name: PPolar, DSS property index: 7

◆ residual()

bools dss::obj::MonitorBatch::residual ( )
inline

{Yes/True | No/False} Default = No.

Include Residual cbannel (sum of all phases) for voltage and current. Does not apply to sequence quantity modes or power modes.

DSS property name: residual, DSS property index: 5

◆ terminal()

BatchInt32ArrayProxy dss::obj::MonitorBatch::terminal ( )
inline

Number of the terminal of the circuit element to which the monitor is connected.

1 or 2, typically. For monitoring states, attach monitor to terminal 1.

DSS property name: terminal, DSS property index: 2

◆ VIPolar()

bools dss::obj::MonitorBatch::VIPolar ( )
inline

{Yes/True | No/False} Default = YES.

Report voltage and current in polar form (Mag/Angle). (default) Otherwise, it will be real and imaginary.

DSS property name: VIPolar, DSS property index: 6


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