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::SwtControlBatch Class Reference
Inheritance diagram for dss::obj::SwtControlBatch:
[legend]
Collaboration diagram for dss::obj::SwtControlBatch:
[legend]

Public Types

typedef SwtControl::Properties Properties
 
typedef SwtControl BatchElementClass
 
typedef SwtControl::SwtControlAction SwtControlAction
 
typedef SwtControl::SwtControlState SwtControlState
 

Public Member Functions

 SwtControlBatch (APIUtil *util)
 Create a batch of all SwtControl elements.
 
 SwtControlBatch (APIUtil *util, int32_t prop_idx, int32_t prop_value)
 Create a batch of all SwtControl elements that match an integer property value.
 
 SwtControlBatch (APIUtil *util, const char *regexp)
 Create a batch of all SwtControl elements that match a regular expression.
 
SwtControlBatchbegin_edit ()
 
SwtControlBatchend_edit (int32_t num_edits=1)
 
strings SwitchedObj ()
 Name of circuit element switch that the SwtControl operates. More...
 
SwtControlBatchSwitchedObj (dss::obj::DSSObj &value)
 
SwtControlBatchSwitchedObj (const string &value)
 
std::vector< dss::obj::DSSObjSwitchedObj_obj ()
 Name of circuit element switch that the SwtControl operates. More...
 
SwtControlBatchSwitchedObj_obj (dss::obj::DSSObj &value)
 
BatchInt32ArrayProxy SwitchedTerm ()
 Terminal number of the controlled element switch. More...
 
SwtControlBatchSwitchedTerm (int32_t value)
 
template<typename T >
SwtControlBatchSwitchedTerm (T &value)
 
template<typename T >
SwtControlBatchSwitchedTerm (typename T::iterator it_begin, typename T::iterator it_end)
 
BatchInt32ArrayProxy Action ()
 {Open | Close} After specified delay time, and if not locked, causes the controlled switch to open or close. More...
 
SwtControlBatchAction (string &value)
 
SwtControlBatchAction (int32_t value)
 
SwtControlBatchAction (SwtControl::SwtControlAction value)
 
SwtControlBatchAction (strings &value)
 
SwtControlBatchAction (std::vector< int32_t > &value)
 
SwtControlBatchAction (std::vector< SwtControl::SwtControlAction > &value)
 
strings Action_str ()
 {Open | Close} After specified delay time, and if not locked, causes the controlled switch to open or close. More...
 
SwtControlBatchAction_str (string &value)
 
SwtControlBatchAction_str (strings &value)
 
bools Lock ()
 {Yes | No} Delayed action. More...
 
SwtControlBatchLock (bool value)
 
SwtControlBatchLock (bools &value)
 
BatchFloat64ArrayProxy Delay ()
 Operating time delay (sec) of the switch. More...
 
SwtControlBatchDelay (double value)
 
template<typename T >
SwtControlBatchDelay (T &value)
 
template<typename T >
SwtControlBatchDelay (typename T::iterator it_begin, typename T::iterator it_end)
 
BatchInt32ArrayProxy Normal ()
 {Open | Closed] Normal state of the switch. More...
 
SwtControlBatchNormal (string &value)
 
SwtControlBatchNormal (int32_t value)
 
SwtControlBatchNormal (SwtControl::SwtControlState value)
 
SwtControlBatchNormal (strings &value)
 
SwtControlBatchNormal (std::vector< int32_t > &value)
 
SwtControlBatchNormal (std::vector< SwtControl::SwtControlState > &value)
 
strings Normal_str ()
 {Open | Closed] Normal state of the switch. More...
 
SwtControlBatchNormal_str (string &value)
 
SwtControlBatchNormal_str (strings &value)
 
BatchInt32ArrayProxy State ()
 {Open | Closed] Present state of the switch. More...
 
SwtControlBatchState (string &value)
 
SwtControlBatchState (int32_t value)
 
SwtControlBatchState (SwtControl::SwtControlState value)
 
SwtControlBatchState (strings &value)
 
SwtControlBatchState (std::vector< int32_t > &value)
 
SwtControlBatchState (std::vector< SwtControl::SwtControlState > &value)
 
strings State_str ()
 {Open | Closed] Present state of the switch. More...
 
SwtControlBatchState_str (string &value)
 
SwtControlBatchState_str (strings &value)
 
SwtControlBatchReset (bool value)
 {Yes | No} If Yes, forces Reset of switch to Normal state and removes Lock independently of any internal reset command for mode change, etc. More...
 
BatchFloat64ArrayProxy basefreq ()
 Base Frequency for ratings. More...
 
SwtControlBatchbasefreq (double value)
 
template<typename T >
SwtControlBatchbasefreq (T &value)
 
template<typename T >
SwtControlBatchbasefreq (typename T::iterator it_begin, typename T::iterator it_end)
 
bools enabled ()
 {Yes|No or True|False} Indicates whether this element is enabled. More...
 
SwtControlBatchenabled (bool value)
 
SwtControlBatchenabled (bools &value)
 
SwtControlBatchlike (const string &value)
 Make like another object, e.g. More...
 
SwtControlBatchlike (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()

BatchInt32ArrayProxy dss::obj::SwtControlBatch::Action ( )
inline

{Open | Close} After specified delay time, and if not locked, causes the controlled switch to open or close.

DSS property name: Action, DSS property index: 3

◆ Action_str()

strings dss::obj::SwtControlBatch::Action_str ( )
inline

{Open | Close} After specified delay time, and if not locked, causes the controlled switch to open or close.

DSS property name: Action, DSS property index: 3

◆ basefreq()

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

Base Frequency for ratings.

DSS property name: basefreq, DSS property index: 9

◆ Delay()

BatchFloat64ArrayProxy dss::obj::SwtControlBatch::Delay ( )
inline

Operating time delay (sec) of the switch.

Defaults to 120.

DSS property name: Delay, DSS property index: 5

◆ enabled()

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

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

DSS property name: enabled, DSS property index: 10

◆ like() [1/2]

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

Make like another object, e.g.

:

New Capacitor.C2 like=c1 ...

DSS property name: like, DSS property index: 11

◆ like() [2/2]

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

Make like another object, e.g.

:

New Capacitor.C2 like=c1 ...

DSS property name: like, DSS property index: 11

◆ Lock()

bools dss::obj::SwtControlBatch::Lock ( )
inline

{Yes | No} Delayed action.

Sends CTRL_LOCK or CTRL_UNLOCK message to control queue. After delay time, controlled switch is locked in its present open / close state or unlocked. Switch will not respond to either manual (Action) or automatic (COM interface) control or internal OpenDSS Reset when locked.

DSS property name: Lock, DSS property index: 4

◆ Normal()

BatchInt32ArrayProxy dss::obj::SwtControlBatch::Normal ( )
inline

{Open | Closed] Normal state of the switch.

If not Locked, the switch reverts to this state for reset, change of mode, etc. Defaults to first Action or State specified if not specifically declared.

DSS property name: Normal, DSS property index: 6

◆ Normal_str()

strings dss::obj::SwtControlBatch::Normal_str ( )
inline

{Open | Closed] Normal state of the switch.

If not Locked, the switch reverts to this state for reset, change of mode, etc. Defaults to first Action or State specified if not specifically declared.

DSS property name: Normal, DSS property index: 6

◆ Reset()

SwtControlBatch & dss::obj::SwtControlBatch::Reset ( bool  value)
inline

{Yes | No} If Yes, forces Reset of switch to Normal state and removes Lock independently of any internal reset command for mode change, etc.

DSS property name: Reset, DSS property index: 8

◆ State()

BatchInt32ArrayProxy dss::obj::SwtControlBatch::State ( )
inline

{Open | Closed] Present state of the switch.

Upon setting, immediately forces state of switch.

DSS property name: State, DSS property index: 7

◆ State_str()

strings dss::obj::SwtControlBatch::State_str ( )
inline

{Open | Closed] Present state of the switch.

Upon setting, immediately forces state of switch.

DSS property name: State, DSS property index: 7

◆ SwitchedObj()

strings dss::obj::SwtControlBatch::SwitchedObj ( )
inline

Name of circuit element switch that the SwtControl operates.

Specify the full object class and name.

DSS property name: SwitchedObj, DSS property index: 1

◆ SwitchedObj_obj()

std::vector< dss::obj::DSSObj > dss::obj::SwtControlBatch::SwitchedObj_obj ( )
inline

Name of circuit element switch that the SwtControl operates.

Specify the full object class and name.

DSS property name: SwitchedObj, DSS property index: 1

◆ SwitchedTerm()

BatchInt32ArrayProxy dss::obj::SwtControlBatch::SwitchedTerm ( )
inline

Terminal number of the controlled element switch.

1 or 2, typically. Default is 1.

DSS property name: SwitchedTerm, DSS property index: 2


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