14#ifndef DSS_CPP_CLASSIC_API
15#define DSS_CPP_CLASSIC_API
17#include "dss_common.hpp"
20namespace dss {
namespace classic {
22#ifdef DSS_CAPI_NAMESPACE
23using namespace dss::capi;
39 ctx_DSSProgress_Close(
ctx);
44 ctx_DSSProgress_Show(
ctx);
53 ctx_DSSProgress_Set_Caption(
ctx, value);
59 ctx_DSSProgress_Set_Caption(
ctx, value.c_str());
69 ctx_DSSProgress_Set_PctProgress(
ctx, value);
86 ctx_DSSProperty_Set_Index(
ctx, key);
93 ctx_DSSProperty_Set_Name(
ctx, key);
98 return (*
this)[key.c_str()];
107 return ctx_DSSProperty_Get_Description(
ctx);
116 return ctx_DSSProperty_Get_Name(
ctx);
122 return ctx_DSSProperty_Get_Val(
ctx);
124 IDSSProperty& Val(
const char *value)
127 ctx_DSSProperty_Set_Val(
ctx, value);
130 IDSSProperty& Val(
const string &value)
132 APIUtil::ErrorChecker error_checker(
api_util);
133 ctx_DSSProperty_Set_Val(
ctx, value.c_str());
152 return ctx_DSS_Executive_Get_Command(
ctx, i);
160 return ctx_DSS_Executive_Get_CommandHelp(
ctx, i);
168 return ctx_DSS_Executive_Get_Option(
ctx, i);
176 return ctx_DSS_Executive_Get_OptionHelp(
ctx, i);
184 return ctx_DSS_Executive_Get_OptionValue(
ctx, i);
193 return ctx_DSS_Executive_Get_NumCommands(
ctx);
202 return ctx_DSS_Executive_Get_NumOptions(
ctx);
214 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
215 VectorT BusVoltage(
size_t Index)
218 ctx_DSSimComs_BusVoltage_GR(
ctx, Index);
219 return api_util->get_float64_gr_array<VectorT>();
221 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
222 VectorT BusVoltagepu(
size_t Index)
225 ctx_DSSimComs_BusVoltagepu_GR(
ctx, Index);
226 return api_util->get_float64_gr_array<VectorT>();
245 return ctx_Error_Get_Description(
ctx);
254 return ctx_Error_Get_Number(
ctx);
265 return (ctx_Error_Get_EarlyAbort(
ctx) != 0);
270 ctx_Error_Set_EarlyAbort(
ctx, value);
299 return (ctx_Error_Get_ExtendedErrors(
ctx) != 0);
304 ctx_Error_Set_ExtendedErrors(
ctx, value);
324 return api_util->get_string_array(ctx_Fuses_Get_AllNames);
333 return ctx_Fuses_Get_Count(
ctx);
342 return ctx_Fuses_Get_First(
ctx);
351 return ctx_Fuses_Get_Name(
ctx);
360 ctx_Fuses_Set_Name(
ctx, value);
365 return Name(value.c_str());
374 return ctx_Fuses_Get_Next(
ctx);
383 return ctx_Fuses_Get_idx(
ctx);
392 ctx_Fuses_Set_idx(
ctx, value);
400 ctx_Fuses_Close(
ctx);
408 return (ctx_Fuses_IsBlown(
ctx) != 0);
424 ctx_Fuses_Reset(
ctx);
434 return ctx_Fuses_Get_Delay(
ctx);
439 ctx_Fuses_Set_Delay(
ctx, value);
449 return ctx_Fuses_Get_MonitoredObj(
ctx);
454 ctx_Fuses_Set_MonitoredObj(
ctx, value);
460 ctx_Fuses_Set_MonitoredObj(
ctx, value.c_str());
470 return ctx_Fuses_Get_MonitoredTerm(
ctx);
475 ctx_Fuses_Set_MonitoredTerm(
ctx, value);
485 return ctx_Fuses_Get_NumPhases(
ctx);
495 return ctx_Fuses_Get_RatedCurrent(
ctx);
500 ctx_Fuses_Set_RatedCurrent(
ctx, value);
511 return ctx_Fuses_Get_SwitchedObj(
ctx);
516 ctx_Fuses_Set_SwitchedObj(
ctx, value);
522 ctx_Fuses_Set_SwitchedObj(
ctx, value.c_str());
532 return ctx_Fuses_Get_SwitchedTerm(
ctx);
537 ctx_Fuses_Set_SwitchedTerm(
ctx, value);
547 return ctx_Fuses_Get_TCCcurve(
ctx);
552 ctx_Fuses_Set_TCCcurve(
ctx, value);
555 IFuses&
TCCcurve(
const string &value)
558 ctx_Fuses_Set_TCCcurve(
ctx, value.c_str());
568 return api_util->get_string_array(ctx_Fuses_Get_State);
573 api_util->set_string_array(ctx_Fuses_Set_State, value);
583 return api_util->get_string_array(ctx_Fuses_Get_NormalState);
588 api_util->set_string_array(ctx_Fuses_Set_NormalState, value);
608 return api_util->get_string_array(ctx_Generators_Get_AllNames);
617 return ctx_Generators_Get_Count(
ctx);
626 return ctx_Generators_Get_First(
ctx);
635 return ctx_Generators_Get_Name(
ctx);
644 ctx_Generators_Set_Name(
ctx, value);
649 return Name(value.c_str());
658 return ctx_Generators_Get_Next(
ctx);
667 return ctx_Generators_Get_idx(
ctx);
676 ctx_Generators_Set_idx(
ctx, value);
685 return (ctx_Generators_Get_ForcedON(
ctx) != 0);
690 ctx_Generators_Set_ForcedON(
ctx, value);
700 return ctx_Generators_Get_Model(
ctx);
705 ctx_Generators_Set_Model(
ctx, value);
715 return ctx_Generators_Get_PF(
ctx);
720 ctx_Generators_Set_PF(
ctx, value);
730 return ctx_Generators_Get_Phases(
ctx);
735 ctx_Generators_Set_Phases(
ctx, value);
745 return api_util->get_string_array(ctx_Generators_Get_RegisterNames);
751 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
755 ctx_Generators_Get_RegisterValues_GR(
ctx);
756 return api_util->get_float64_gr_array<VectorT>();
765 return ctx_Generators_Get_Vmaxpu(
ctx);
770 ctx_Generators_Set_Vmaxpu(
ctx, value);
780 return ctx_Generators_Get_Vminpu(
ctx);
785 ctx_Generators_Set_Vminpu(
ctx, value);
795 return ctx_Generators_Get_kV(
ctx);
800 ctx_Generators_Set_kV(
ctx, value);
810 return ctx_Generators_Get_kVArated(
ctx);
815 ctx_Generators_Set_kVArated(
ctx, value);
825 return ctx_Generators_Get_kW(
ctx);
830 ctx_Generators_Set_kW(
ctx, value);
840 return ctx_Generators_Get_kvar(
ctx);
845 ctx_Generators_Set_kvar(
ctx, value);
857 return ctx_Generators_Get_daily(
ctx);
862 ctx_Generators_Set_daily(
ctx, value);
865 IGenerators&
daily(
const string &value)
868 ctx_Generators_Set_daily(
ctx, value.c_str());
880 return ctx_Generators_Get_duty(
ctx);
885 ctx_Generators_Set_duty(
ctx, value);
888 IGenerators&
duty(
const string &value)
891 ctx_Generators_Set_duty(
ctx, value.c_str());
903 return ctx_Generators_Get_Yearly(
ctx);
908 ctx_Generators_Set_Yearly(
ctx, value);
911 IGenerators&
Yearly(
const string &value)
914 ctx_Generators_Set_Yearly(
ctx, value.c_str());
928 return ctx_Generators_Get_Status(
ctx);
933 ctx_Generators_Set_Status(
ctx, value);
945 return (ctx_Generators_Get_IsDelta(
ctx) != 0);
950 ctx_Generators_Set_IsDelta(
ctx, value);
962 return ctx_Generators_Get_kva(
ctx);
967 ctx_Generators_Set_kva(
ctx, value);
979 return ctx_Generators_Get_Class_(
ctx);
984 ctx_Generators_Set_Class_(
ctx, value);
996 return ctx_Generators_Get_Bus1(
ctx);
1001 ctx_Generators_Set_Bus1(
ctx, value);
1004 IGenerators&
Bus1(
const string &value)
1007 ctx_Generators_Set_Bus1(
ctx, value.c_str());
1027 return api_util->get_string_array(ctx_ISources_Get_AllNames);
1036 return ctx_ISources_Get_Count(
ctx);
1045 return ctx_ISources_Get_First(
ctx);
1054 return ctx_ISources_Get_Name(
ctx);
1063 ctx_ISources_Set_Name(
ctx, value);
1068 return Name(value.c_str());
1077 return ctx_ISources_Get_Next(
ctx);
1086 return ctx_ISources_Get_idx(
ctx);
1095 ctx_ISources_Set_idx(
ctx, value);
1104 return ctx_ISources_Get_Amps(
ctx);
1109 ctx_ISources_Set_Amps(
ctx, value);
1119 return ctx_ISources_Get_AngleDeg(
ctx);
1124 ctx_ISources_Set_AngleDeg(
ctx, value);
1134 return ctx_ISources_Get_Frequency(
ctx);
1139 ctx_ISources_Set_Frequency(
ctx, value);
1159 return api_util->get_string_array(ctx_LineCodes_Get_AllNames);
1168 return ctx_LineCodes_Get_Count(
ctx);
1177 return ctx_LineCodes_Get_First(
ctx);
1186 return ctx_LineCodes_Get_Name(
ctx);
1195 ctx_LineCodes_Set_Name(
ctx, value);
1200 return Name(value.c_str());
1209 return ctx_LineCodes_Get_Next(
ctx);
1218 return ctx_LineCodes_Get_idx(
ctx);
1227 ctx_LineCodes_Set_idx(
ctx, value);
1236 return ctx_LineCodes_Get_C0(
ctx);
1241 ctx_LineCodes_Set_C0(
ctx, value);
1251 return ctx_LineCodes_Get_C1(
ctx);
1256 ctx_LineCodes_Set_C1(
ctx, value);
1263 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
1267 ctx_LineCodes_Get_Cmatrix_GR(
ctx);
1268 return api_util->get_float64_gr_array<VectorT>();
1270 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
1274 ctx_LineCodes_Set_Cmatrix(
ctx, &value[0], value.size());
1284 return ctx_LineCodes_Get_EmergAmps(
ctx);
1289 ctx_LineCodes_Set_EmergAmps(
ctx, value);
1299 return (ctx_LineCodes_Get_IsZ1Z0(
ctx) != 0);
1308 return ctx_LineCodes_Get_NormAmps(
ctx);
1313 ctx_LineCodes_Set_NormAmps(
ctx, value);
1323 return ctx_LineCodes_Get_Phases(
ctx);
1328 ctx_LineCodes_Set_Phases(
ctx, value);
1338 return ctx_LineCodes_Get_R0(
ctx);
1343 ctx_LineCodes_Set_R0(
ctx, value);
1353 return ctx_LineCodes_Get_R1(
ctx);
1358 ctx_LineCodes_Set_R1(
ctx, value);
1365 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
1369 ctx_LineCodes_Get_Rmatrix_GR(
ctx);
1370 return api_util->get_float64_gr_array<VectorT>();
1372 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
1376 ctx_LineCodes_Set_Rmatrix(
ctx, &value[0], value.size());
1383 return ctx_LineCodes_Get_Units(
ctx);
1385 ILineCodes& Units(int32_t value)
1387 APIUtil::ErrorChecker error_checker(
api_util);
1388 ctx_LineCodes_Set_Units(
ctx, value);
1398 return ctx_LineCodes_Get_X0(
ctx);
1403 ctx_LineCodes_Set_X0(
ctx, value);
1413 return ctx_LineCodes_Get_X1(
ctx);
1418 ctx_LineCodes_Set_X1(
ctx, value);
1425 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
1429 ctx_LineCodes_Get_Xmatrix_GR(
ctx);
1430 return api_util->get_float64_gr_array<VectorT>();
1432 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
1436 ctx_LineCodes_Set_Xmatrix(
ctx, &value[0], value.size());
1456 return api_util->get_string_array(ctx_LineSpacings_Get_AllNames);
1465 return ctx_LineSpacings_Get_Count(
ctx);
1474 return ctx_LineSpacings_Get_First(
ctx);
1483 return ctx_LineSpacings_Get_Name(
ctx);
1492 ctx_LineSpacings_Set_Name(
ctx, value);
1497 return Name(value.c_str());
1506 return ctx_LineSpacings_Get_Next(
ctx);
1515 return ctx_LineSpacings_Get_idx(
ctx);
1524 ctx_LineSpacings_Set_idx(
ctx, value);
1533 return ctx_LineSpacings_Get_Phases(
ctx);
1538 ctx_LineSpacings_Set_Phases(
ctx, value);
1545 return ctx_LineSpacings_Get_Nconds(
ctx);
1547 ILineSpacings& Nconds(int32_t value)
1549 APIUtil::ErrorChecker error_checker(
api_util);
1550 ctx_LineSpacings_Set_Nconds(
ctx, value);
1556 APIUtil::ErrorChecker error_checker(
api_util);
1557 return ctx_LineSpacings_Get_Units(
ctx);
1559 ILineSpacings& Units(int32_t value)
1561 APIUtil::ErrorChecker error_checker(
api_util);
1562 ctx_LineSpacings_Set_Units(
ctx, value);
1569 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
1573 ctx_LineSpacings_Get_Xcoords_GR(
ctx);
1574 return api_util->get_float64_gr_array<VectorT>();
1576 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
1580 ctx_LineSpacings_Set_Xcoords(
ctx, &value[0], value.size());
1587 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
1591 ctx_LineSpacings_Get_Ycoords_GR(
ctx);
1592 return api_util->get_float64_gr_array<VectorT>();
1594 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
1598 ctx_LineSpacings_Set_Ycoords(
ctx, &value[0], value.size());
1618 return api_util->get_string_array(ctx_LoadShapes_Get_AllNames);
1627 return ctx_LoadShapes_Get_Count(
ctx);
1636 return ctx_LoadShapes_Get_First(
ctx);
1645 return ctx_LoadShapes_Get_Name(
ctx);
1654 ctx_LoadShapes_Set_Name(
ctx, value);
1659 return Name(value.c_str());
1668 return ctx_LoadShapes_Get_Next(
ctx);
1677 return ctx_LoadShapes_Get_idx(
ctx);
1686 ctx_LoadShapes_Set_idx(
ctx, value);
1688 int32_t New(
const char *
Name)
1691 return ctx_LoadShapes_New(
ctx,
Name);
1693 int32_t New(
const string &
Name)
1696 return ctx_LoadShapes_New(
ctx,
Name.c_str());
1700 APIUtil::ErrorChecker error_checker(
api_util);
1701 ctx_LoadShapes_Normalize(
ctx);
1710 return ctx_LoadShapes_Get_HrInterval(
ctx);
1715 ctx_LoadShapes_Set_HrInterval(
ctx, value);
1725 return ctx_LoadShapes_Get_MinInterval(
ctx);
1730 ctx_LoadShapes_Set_MinInterval(
ctx, value);
1740 return ctx_LoadShapes_Get_Npts(
ctx);
1745 ctx_LoadShapes_Set_Npts(
ctx, value);
1752 return ctx_LoadShapes_Get_PBase(
ctx);
1754 ILoadShapes& PBase(
double value)
1756 APIUtil::ErrorChecker error_checker(
api_util);
1757 ctx_LoadShapes_Set_PBase(
ctx, value);
1764 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
1768 ctx_LoadShapes_Get_Pmult_GR(
ctx);
1769 return api_util->get_float64_gr_array<VectorT>();
1771 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
1775 ctx_LoadShapes_Set_Pmult(
ctx, &value[0], value.size());
1785 return ctx_LoadShapes_Get_Qbase(
ctx);
1790 ctx_LoadShapes_Set_Qbase(
ctx, value);
1797 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
1801 ctx_LoadShapes_Get_Qmult_GR(
ctx);
1802 return api_util->get_float64_gr_array<VectorT>();
1804 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
1808 ctx_LoadShapes_Set_Qmult(
ctx, &value[0], value.size());
1815 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
1819 ctx_LoadShapes_Get_TimeArray_GR(
ctx);
1820 return api_util->get_float64_gr_array<VectorT>();
1822 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
1826 ctx_LoadShapes_Set_TimeArray(
ctx, &value[0], value.size());
1836 return (ctx_LoadShapes_Get_UseActual(
ctx) != 0);
1841 ctx_LoadShapes_Set_UseActual(
ctx, value);
1848 return ctx_LoadShapes_Get_SInterval(
ctx);
1850 ILoadShapes& sInterval(
double value)
1852 APIUtil::ErrorChecker error_checker(
api_util);
1853 ctx_LoadShapes_Set_SInterval(
ctx, value);
1865 ctx_LoadShapes_UseFloat32(
ctx);
1876 ctx_LoadShapes_UseFloat64(
ctx);
1894 template <
typename VectorT=Eigen::VectorXd>
1898 ctx_Monitors_Get_Channel_GR(
ctx, Index);
1899 return api_util->get_float64_gr_array<VectorT>();
1908 return api_util->get_string_array(ctx_Monitors_Get_AllNames);
1917 return ctx_Monitors_Get_Count(
ctx);
1926 return ctx_Monitors_Get_First(
ctx);
1935 return ctx_Monitors_Get_Name(
ctx);
1944 ctx_Monitors_Set_Name(
ctx, value);
1949 return Name(value.c_str());
1958 return ctx_Monitors_Get_Next(
ctx);
1967 return ctx_Monitors_Get_idx(
ctx);
1976 ctx_Monitors_Set_idx(
ctx, value);
1981 ctx_Monitors_Process(
ctx);
1986 ctx_Monitors_ProcessAll(
ctx);
1990 APIUtil::ErrorChecker error_checker(
api_util);
1991 ctx_Monitors_Reset(
ctx);
1995 APIUtil::ErrorChecker error_checker(
api_util);
1996 ctx_Monitors_ResetAll(
ctx);
2000 APIUtil::ErrorChecker error_checker(
api_util);
2001 ctx_Monitors_Sample(
ctx);
2005 APIUtil::ErrorChecker error_checker(
api_util);
2006 ctx_Monitors_SampleAll(
ctx);
2010 APIUtil::ErrorChecker error_checker(
api_util);
2011 ctx_Monitors_Save(
ctx);
2015 APIUtil::ErrorChecker error_checker(
api_util);
2016 ctx_Monitors_SaveAll(
ctx);
2020 APIUtil::ErrorChecker error_checker(
api_util);
2021 ctx_Monitors_Show(
ctx);
2027 template <
typename VectorT=Eigen::Matrix<
int8_t, Eigen::Dynamic, 1>>
2031 ctx_Monitors_Get_ByteStream_GR(
ctx);
2032 return api_util->get_int8_gr_array<VectorT>();
2041 return ctx_Monitors_Get_Element(
ctx);
2046 ctx_Monitors_Set_Element(
ctx, value);
2049 IMonitors&
Element(
const string &value)
2052 ctx_Monitors_Set_Element(
ctx, value.c_str());
2062 return ctx_Monitors_Get_FileName(
ctx);
2071 return ctx_Monitors_Get_FileVersion(
ctx);
2080 return api_util->get_string_array(ctx_Monitors_Get_Header);
2089 return ctx_Monitors_Get_Mode(
ctx);
2094 ctx_Monitors_Set_Mode(
ctx, value);
2104 return ctx_Monitors_Get_NumChannels(
ctx);
2113 return ctx_Monitors_Get_RecordSize(
ctx);
2122 return ctx_Monitors_Get_SampleCount(
ctx);
2131 return ctx_Monitors_Get_Terminal(
ctx);
2136 ctx_Monitors_Set_Terminal(
ctx, value);
2143 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
2147 ctx_Monitors_Get_dblFreq_GR(
ctx);
2148 return api_util->get_float64_gr_array<VectorT>();
2154 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
2158 ctx_Monitors_Get_dblHour_GR(
ctx);
2159 return api_util->get_float64_gr_array<VectorT>();
2174 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
2178 ctx_Parser_Get_Matrix_GR(
ctx, ExpectedOrder);
2179 return api_util->get_float64_gr_array<VectorT>();
2184 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
2188 ctx_Parser_Get_SymMatrix_GR(
ctx, ExpectedOrder);
2189 return api_util->get_float64_gr_array<VectorT>();
2194 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
2198 ctx_Parser_Get_Vector_GR(
ctx, ExpectedSize);
2199 return api_util->get_float64_gr_array<VectorT>();
2201 void ResetDelimiters()
2204 ctx_Parser_ResetDelimiters(
ctx);
2213 return (ctx_Parser_Get_AutoIncrement(
ctx) != 0);
2218 ctx_Parser_Set_AutoIncrement(
ctx, value);
2228 return ctx_Parser_Get_BeginQuote(
ctx);
2233 ctx_Parser_Set_BeginQuote(
ctx, value);
2239 ctx_Parser_Set_BeginQuote(
ctx, value.c_str());
2249 return ctx_Parser_Get_CmdString(
ctx);
2254 ctx_Parser_Set_CmdString(
ctx, value);
2260 ctx_Parser_Set_CmdString(
ctx, value.c_str());
2270 return ctx_Parser_Get_DblValue(
ctx);
2279 return ctx_Parser_Get_Delimiters(
ctx);
2284 ctx_Parser_Set_Delimiters(
ctx, value);
2290 ctx_Parser_Set_Delimiters(
ctx, value.c_str());
2300 return ctx_Parser_Get_EndQuote(
ctx);
2305 ctx_Parser_Set_EndQuote(
ctx, value);
2308 IParser&
EndQuote(
const string &value)
2311 ctx_Parser_Set_EndQuote(
ctx, value.c_str());
2321 return ctx_Parser_Get_IntValue(
ctx);
2330 return ctx_Parser_Get_NextParam(
ctx);
2339 return ctx_Parser_Get_StrValue(
ctx);
2349 return ctx_Parser_Get_WhiteSpace(
ctx);
2354 ctx_Parser_Set_WhiteSpace(
ctx, value);
2360 ctx_Parser_Set_WhiteSpace(
ctx, value.c_str());
2380 return ctx_ReduceCkt_Get_Zmag(
ctx);
2385 ctx_ReduceCkt_Set_Zmag(
ctx, value);
2395 return (ctx_ReduceCkt_Get_KeepLoad(
ctx) != 0);
2400 ctx_ReduceCkt_Set_KeepLoad(
ctx, value);
2410 return ctx_ReduceCkt_Get_EditString(
ctx);
2415 ctx_ReduceCkt_Set_EditString(
ctx, value);
2421 ctx_ReduceCkt_Set_EditString(
ctx, value.c_str());
2431 return ctx_ReduceCkt_Get_StartPDElement(
ctx);
2436 ctx_ReduceCkt_Set_StartPDElement(
ctx, value);
2442 ctx_ReduceCkt_Set_StartPDElement(
ctx, value.c_str());
2452 return ctx_ReduceCkt_Get_EnergyMeter(
ctx);
2457 ctx_ReduceCkt_Set_EnergyMeter(
ctx, value);
2463 ctx_ReduceCkt_Set_EnergyMeter(
ctx, value.c_str());
2473 ctx_ReduceCkt_SaveCircuit(
ctx, CktName);
2482 ctx_ReduceCkt_SaveCircuit(
ctx, CktName.c_str());
2490 ctx_ReduceCkt_DoDefault(
ctx);
2498 ctx_ReduceCkt_DoShortLines(
ctx);
2506 ctx_ReduceCkt_DoDangling(
ctx);
2511 ctx_ReduceCkt_DoLoopBreak(
ctx);
2513 void DoParallelLines()
2516 ctx_ReduceCkt_DoParallelLines(
ctx);
2520 APIUtil::ErrorChecker error_checker(
api_util);
2521 ctx_ReduceCkt_DoSwitches(
ctx);
2523 void Do1phLaterals()
2525 APIUtil::ErrorChecker error_checker(
api_util);
2526 ctx_ReduceCkt_Do1phLaterals(
ctx);
2528 void DoBranchRemove()
2530 APIUtil::ErrorChecker error_checker(
api_util);
2531 ctx_ReduceCkt_DoBranchRemove(
ctx);
2546 ctx_YMatrix_ZeroInjCurr(
ctx);
2548 void GetSourceInjCurrents()
2551 ctx_YMatrix_GetSourceInjCurrents(
ctx);
2556 ctx_YMatrix_GetPCInjCurr(
ctx);
2558 void BuildYMatrixD(int32_t BuildOps, int32_t AllocateVI)
2561 ctx_YMatrix_BuildYMatrixD(
ctx, BuildOps, AllocateVI);
2563 void AddInAuxCurrents(int32_t SType)
2566 ctx_YMatrix_AddInAuxCurrents(
ctx, SType);
2569 bool SystemYChanged()
2572 return (ctx_YMatrix_Get_SystemYChanged(
ctx) != 0);
2574 IYMatrix& SystemYChanged(
bool value)
2577 ctx_YMatrix_Set_SystemYChanged(
ctx, value);
2581 bool UseAuxCurrents()
2584 return (ctx_YMatrix_Get_UseAuxCurrents(
ctx) != 0);
2586 IYMatrix& UseAuxCurrents(
bool value)
2589 ctx_YMatrix_Set_UseAuxCurrents(
ctx, value);
2599 return ctx_YMatrix_Get_SolverOptions(
ctx);
2604 ctx_YMatrix_Set_SolverOptions(
ctx, value);
2607 bool CheckConvergence()
2610 return (ctx_YMatrix_CheckConvergence(
ctx) != 0);
2612 void SetGeneratordQdV()
2614 APIUtil::ErrorChecker error_checker(
api_util);
2615 ctx_YMatrix_SetGeneratordQdV(
ctx);
2618 bool LoadsNeedUpdating()
2620 APIUtil::ErrorChecker error_checker(
api_util);
2621 return (ctx_YMatrix_Get_LoadsNeedUpdating(
ctx) != 0);
2623 IYMatrix& LoadsNeedUpdating(
bool value)
2625 APIUtil::ErrorChecker error_checker(
api_util);
2626 ctx_YMatrix_Set_LoadsNeedUpdating(
ctx, value);
2630 bool SolutionInitialized()
2632 APIUtil::ErrorChecker error_checker(
api_util);
2633 return (ctx_YMatrix_Get_SolutionInitialized(
ctx) != 0);
2635 IYMatrix& SolutionInitialized(
bool value)
2637 APIUtil::ErrorChecker error_checker(
api_util);
2638 ctx_YMatrix_Set_SolutionInitialized(
ctx, value);
2644 APIUtil::ErrorChecker error_checker(
api_util);
2645 return ctx_YMatrix_Get_Iteration(
ctx);
2647 IYMatrix& Iteration(int32_t value)
2649 APIUtil::ErrorChecker error_checker(
api_util);
2650 ctx_YMatrix_Set_Iteration(
ctx, value);
2670 return api_util->get_string_array(ctx_Meters_Get_ZonePCE);
2679 return api_util->get_string_array(ctx_Meters_Get_AllNames);
2688 return ctx_Meters_Get_Count(
ctx);
2697 return ctx_Meters_Get_First(
ctx);
2706 return ctx_Meters_Get_Name(
ctx);
2715 ctx_Meters_Set_Name(
ctx, value);
2720 return Name(value.c_str());
2729 return ctx_Meters_Get_Next(
ctx);
2738 return ctx_Meters_Get_idx(
ctx);
2747 ctx_Meters_Set_idx(
ctx, value);
2749 void CloseAllDIFiles()
2752 ctx_Meters_CloseAllDIFiles(
ctx);
2754 void DoReliabilityCalc(
bool AssumeRestoration)
2757 ctx_Meters_DoReliabilityCalc(
ctx, AssumeRestoration);
2759 void OpenAllDIFiles()
2761 APIUtil::ErrorChecker error_checker(
api_util);
2762 ctx_Meters_OpenAllDIFiles(
ctx);
2766 APIUtil::ErrorChecker error_checker(
api_util);
2767 ctx_Meters_Reset(
ctx);
2771 APIUtil::ErrorChecker error_checker(
api_util);
2772 ctx_Meters_ResetAll(
ctx);
2776 APIUtil::ErrorChecker error_checker(
api_util);
2777 ctx_Meters_Sample(
ctx);
2781 APIUtil::ErrorChecker error_checker(
api_util);
2782 ctx_Meters_SampleAll(
ctx);
2786 APIUtil::ErrorChecker error_checker(
api_util);
2787 ctx_Meters_Save(
ctx);
2791 APIUtil::ErrorChecker error_checker(
api_util);
2792 ctx_Meters_SaveAll(
ctx);
2794 void SetActiveSection(int32_t SectIdx)
2796 APIUtil::ErrorChecker error_checker(
api_util);
2797 ctx_Meters_SetActiveSection(
ctx, SectIdx);
2806 return api_util->get_string_array(ctx_Meters_Get_AllBranchesInZone);
2815 return api_util->get_string_array(ctx_Meters_Get_AllEndElements);
2821 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
2825 ctx_Meters_Get_AllocFactors_GR(
ctx);
2826 return api_util->get_float64_gr_array<VectorT>();
2828 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
2832 ctx_Meters_Set_AllocFactors(
ctx, &value[0], value.size());
2842 return ctx_Meters_Get_AvgRepairTime(
ctx);
2848 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
2852 ctx_Meters_Get_CalcCurrent_GR(
ctx);
2853 return api_util->get_float64_gr_array<VectorT>();
2855 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
2859 ctx_Meters_Set_CalcCurrent(
ctx, &value[0], value.size());
2869 return ctx_Meters_Get_CountBranches(
ctx);
2878 return ctx_Meters_Get_CountEndElements(
ctx);
2887 return ctx_Meters_Get_CustInterrupts(
ctx);
2896 return (ctx_Meters_Get_DIFilesAreOpen(
ctx) != 0);
2905 return ctx_Meters_Get_FaultRateXRepairHrs(
ctx);
2914 return ctx_Meters_Get_MeteredElement(
ctx);
2919 ctx_Meters_Set_MeteredElement(
ctx, value);
2925 ctx_Meters_Set_MeteredElement(
ctx, value.c_str());
2935 return ctx_Meters_Get_MeteredTerminal(
ctx);
2940 ctx_Meters_Set_MeteredTerminal(
ctx, value);
2950 return ctx_Meters_Get_NumSectionBranches(
ctx);
2959 return ctx_Meters_Get_NumSectionCustomers(
ctx);
2968 return ctx_Meters_Get_NumSections(
ctx);
2977 return ctx_Meters_Get_OCPDeviceType(
ctx);
2983 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
2987 ctx_Meters_Get_Peakcurrent_GR(
ctx);
2988 return api_util->get_float64_gr_array<VectorT>();
2990 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
2994 ctx_Meters_Set_Peakcurrent(
ctx, &value[0], value.size());
3004 return api_util->get_string_array(ctx_Meters_Get_RegisterNames);
3010 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
3014 ctx_Meters_Get_RegisterValues_GR(
ctx);
3015 return api_util->get_float64_gr_array<VectorT>();
3024 return ctx_Meters_Get_SAIDI(
ctx);
3033 return ctx_Meters_Get_SAIFI(
ctx);
3042 return ctx_Meters_Get_SAIFIKW(
ctx);
3051 return ctx_Meters_Get_SectSeqIdx(
ctx);
3060 return ctx_Meters_Get_SectTotalCust(
ctx);
3069 return ctx_Meters_Get_SeqListSize(
ctx);
3078 return ctx_Meters_Get_SequenceIndex(
ctx);
3083 ctx_Meters_Set_SequenceIndex(
ctx, value);
3093 return ctx_Meters_Get_SumBranchFltRates(
ctx);
3102 return ctx_Meters_Get_TotalCustomers(
ctx);
3108 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
3112 ctx_Meters_Get_Totals_GR(
ctx);
3113 return api_util->get_float64_gr_array<VectorT>();
3133 return ctx_PDElements_Get_AccumulatedL(
ctx);
3142 return ctx_PDElements_Get_Count(
ctx);
3152 return ctx_PDElements_Get_FaultRate(
ctx);
3157 ctx_PDElements_Set_FaultRate(
ctx, value);
3168 return ctx_PDElements_Get_First(
ctx);
3178 return ctx_PDElements_Get_FromTerminal(
ctx);
3189 return (ctx_PDElements_Get_IsShunt(
ctx) != 0);
3198 return ctx_PDElements_Get_Lambda(
ctx);
3208 return ctx_PDElements_Get_Name(
ctx);
3213 ctx_PDElements_Set_Name(
ctx, value);
3216 IPDElements&
Name(
const string &value)
3219 ctx_PDElements_Set_Name(
ctx, value.c_str());
3230 return ctx_PDElements_Get_Next(
ctx);
3239 return ctx_PDElements_Get_Numcustomers(
ctx);
3249 return ctx_PDElements_Get_ParentPDElement(
ctx);
3258 return ctx_PDElements_Get_RepairTime(
ctx);
3263 ctx_PDElements_Set_RepairTime(
ctx, value);
3273 return ctx_PDElements_Get_SectionID(
ctx);
3282 return ctx_PDElements_Get_TotalMiles(
ctx);
3291 return ctx_PDElements_Get_Totalcustomers(
ctx);
3300 return ctx_PDElements_Get_pctPermanent(
ctx);
3305 ctx_PDElements_Set_pctPermanent(
ctx, value);
3317 return api_util->get_string_array(ctx_PDElements_Get_AllNames);
3332 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
3336 ctx_PDElements_Get_AllMaxCurrents_GR(
ctx, AllNodes);
3337 return api_util->get_float64_gr_array<VectorT>();
3352 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
3356 ctx_PDElements_Get_AllPctNorm_GR(
ctx, AllNodes);
3357 return api_util->get_float64_gr_array<VectorT>();
3372 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
3376 ctx_PDElements_Get_AllPctEmerg_GR(
ctx, AllNodes);
3377 return api_util->get_float64_gr_array<VectorT>();
3385 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
3389 ctx_PDElements_Get_AllCurrents_GR(
ctx);
3390 return api_util->get_float64_gr_array<VectorT>();
3398 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
3402 ctx_PDElements_Get_AllCurrentsMagAng_GR(
ctx);
3403 return api_util->get_float64_gr_array<VectorT>();
3411 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
3415 ctx_PDElements_Get_AllCplxSeqCurrents_GR(
ctx);
3416 return api_util->get_float64_gr_array<VectorT>();
3424 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
3428 ctx_PDElements_Get_AllSeqCurrents_GR(
ctx);
3429 return api_util->get_float64_gr_array<VectorT>();
3437 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
3441 ctx_PDElements_Get_AllPowers_GR(
ctx);
3442 return api_util->get_float64_gr_array<VectorT>();
3450 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
3454 ctx_PDElements_Get_AllSeqPowers_GR(
ctx);
3455 return api_util->get_float64_gr_array<VectorT>();
3463 template <
typename VectorT=Eigen::Matrix<
int32_t, Eigen::Dynamic, 1>>
3467 ctx_PDElements_Get_AllNumPhases_GR(
ctx);
3468 return api_util->get_int32_gr_array<VectorT>();
3476 template <
typename VectorT=Eigen::Matrix<
int32_t, Eigen::Dynamic, 1>>
3480 ctx_PDElements_Get_AllNumConductors_GR(
ctx);
3481 return api_util->get_int32_gr_array<VectorT>();
3489 template <
typename VectorT=Eigen::Matrix<
int32_t, Eigen::Dynamic, 1>>
3493 ctx_PDElements_Get_AllNumTerminals_GR(
ctx);
3494 return api_util->get_int32_gr_array<VectorT>();
3513 return api_util->get_string_array(ctx_PVSystems_Get_AllNames);
3522 return ctx_PVSystems_Get_Count(
ctx);
3531 return ctx_PVSystems_Get_First(
ctx);
3540 return ctx_PVSystems_Get_Name(
ctx);
3549 ctx_PVSystems_Set_Name(
ctx, value);
3554 return Name(value.c_str());
3563 return ctx_PVSystems_Get_Next(
ctx);
3572 return ctx_PVSystems_Get_idx(
ctx);
3581 ctx_PVSystems_Set_idx(
ctx, value);
3590 return ctx_PVSystems_Get_Irradiance(
ctx);
3595 ctx_PVSystems_Set_Irradiance(
ctx, value);
3605 return ctx_PVSystems_Get_PF(
ctx);
3610 ctx_PVSystems_Set_PF(
ctx, value);
3620 return api_util->get_string_array(ctx_PVSystems_Get_RegisterNames);
3626 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
3630 ctx_PVSystems_Get_RegisterValues_GR(
ctx);
3631 return api_util->get_float64_gr_array<VectorT>();
3640 return ctx_PVSystems_Get_kVArated(
ctx);
3645 ctx_PVSystems_Set_kVArated(
ctx, value);
3655 return ctx_PVSystems_Get_kW(
ctx);
3664 return ctx_PVSystems_Get_kvar(
ctx);
3669 ctx_PVSystems_Set_kvar(
ctx, value);
3679 return ctx_PVSystems_Get_daily(
ctx);
3684 ctx_PVSystems_Set_daily(
ctx, value);
3687 IPVSystems&
daily(
const string &value)
3690 ctx_PVSystems_Set_daily(
ctx, value.c_str());
3702 return ctx_PVSystems_Get_duty(
ctx);
3707 ctx_PVSystems_Set_duty(
ctx, value);
3710 IPVSystems&
duty(
const string &value)
3713 ctx_PVSystems_Set_duty(
ctx, value.c_str());
3726 return ctx_PVSystems_Get_yearly(
ctx);
3731 ctx_PVSystems_Set_yearly(
ctx, value);
3734 IPVSystems&
yearly(
const string &value)
3737 ctx_PVSystems_Set_yearly(
ctx, value.c_str());
3750 return ctx_PVSystems_Get_Tdaily(
ctx);
3755 ctx_PVSystems_Set_Tdaily(
ctx, value);
3758 IPVSystems&
Tdaily(
const string &value)
3761 ctx_PVSystems_Set_Tdaily(
ctx, value.c_str());
3777 return ctx_PVSystems_Get_Tduty(
ctx);
3782 ctx_PVSystems_Set_Tduty(
ctx, value);
3785 IPVSystems&
Tduty(
const string &value)
3788 ctx_PVSystems_Set_Tduty(
ctx, value.c_str());
3802 return ctx_PVSystems_Get_Tyearly(
ctx);
3807 ctx_PVSystems_Set_Tyearly(
ctx, value);
3810 IPVSystems&
Tyearly(
const string &value)
3813 ctx_PVSystems_Set_Tyearly(
ctx, value.c_str());
3824 return ctx_PVSystems_Get_IrradianceNow(
ctx);
3834 return ctx_PVSystems_Get_Pmpp(
ctx);
3839 ctx_PVSystems_Set_Pmpp(
ctx, value);
3849 return ctx_PVSystems_Get_Sensor(
ctx);
3864 ctx_Parallel_CreateActor(
ctx);
3869 ctx_Parallel_Wait(
ctx);
3878 return ctx_Parallel_Get_ActiveActor(
ctx);
3883 ctx_Parallel_Set_ActiveActor(
ctx, value);
3894 return ctx_Parallel_Get_ActiveParallel(
ctx);
3899 ctx_Parallel_Set_ActiveParallel(
ctx, value);
3909 return ctx_Parallel_Get_ActorCPU(
ctx);
3914 ctx_Parallel_Set_ActorCPU(
ctx, value);
3921 template <
typename VectorT=Eigen::Matrix<
int32_t, Eigen::Dynamic, 1>>
3925 ctx_Parallel_Get_ActorProgress_GR(
ctx);
3926 return api_util->get_int32_gr_array<VectorT>();
3932 template <
typename VectorT=Eigen::Matrix<
int32_t, Eigen::Dynamic, 1>>
3936 ctx_Parallel_Get_ActorStatus_GR(
ctx);
3937 return api_util->get_int32_gr_array<VectorT>();
3947 return ctx_Parallel_Get_ConcatenateReports(
ctx);
3952 ctx_Parallel_Set_ConcatenateReports(
ctx, value);
3962 return ctx_Parallel_Get_NumCPUs(
ctx);
3971 return ctx_Parallel_Get_NumCores(
ctx);
3980 return ctx_Parallel_Get_NumOfActors(
ctx);
3999 return api_util->get_string_array(ctx_Reactors_Get_AllNames);
4008 return ctx_Reactors_Get_Count(
ctx);
4017 return ctx_Reactors_Get_First(
ctx);
4026 return ctx_Reactors_Get_Name(
ctx);
4035 ctx_Reactors_Set_Name(
ctx, value);
4040 return Name(value.c_str());
4049 return ctx_Reactors_Get_Next(
ctx);
4058 return ctx_Reactors_Get_idx(
ctx);
4067 ctx_Reactors_Set_idx(
ctx, value);
4077 return ctx_Reactors_Get_SpecType(
ctx);
4086 return (ctx_Reactors_Get_IsDelta(
ctx) != 0);
4091 ctx_Reactors_Set_IsDelta(
ctx, value);
4101 return (ctx_Reactors_Get_Parallel(
ctx) != 0);
4106 ctx_Reactors_Set_Parallel(
ctx, value);
4116 return ctx_Reactors_Get_LmH(
ctx);
4121 ctx_Reactors_Set_LmH(
ctx, value);
4131 return ctx_Reactors_Get_kV(
ctx);
4136 ctx_Reactors_Set_kV(
ctx, value);
4146 return ctx_Reactors_Get_kvar(
ctx);
4151 ctx_Reactors_Set_kvar(
ctx, value);
4161 return ctx_Reactors_Get_Phases(
ctx);
4166 ctx_Reactors_Set_Phases(
ctx, value);
4178 return ctx_Reactors_Get_Bus1(
ctx);
4183 ctx_Reactors_Set_Bus1(
ctx, value);
4186 IReactors&
Bus1(
const string &value)
4189 ctx_Reactors_Set_Bus1(
ctx, value.c_str());
4200 return ctx_Reactors_Get_Bus2(
ctx);
4205 ctx_Reactors_Set_Bus2(
ctx, value);
4208 IReactors&
Bus2(
const string &value)
4211 ctx_Reactors_Set_Bus2(
ctx, value.c_str());
4221 return ctx_Reactors_Get_LCurve(
ctx);
4226 ctx_Reactors_Set_LCurve(
ctx, value);
4229 IReactors&
LCurve(
const string &value)
4232 ctx_Reactors_Set_LCurve(
ctx, value.c_str());
4242 return ctx_Reactors_Get_RCurve(
ctx);
4247 ctx_Reactors_Set_RCurve(
ctx, value);
4250 IReactors&
RCurve(
const string &value)
4253 ctx_Reactors_Set_RCurve(
ctx, value.c_str());
4263 return ctx_Reactors_Get_R(
ctx);
4268 ctx_Reactors_Set_R(
ctx, value);
4278 return ctx_Reactors_Get_X(
ctx);
4283 ctx_Reactors_Set_X(
ctx, value);
4293 return ctx_Reactors_Get_Rp(
ctx);
4298 ctx_Reactors_Set_Rp(
ctx, value);
4305 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
4309 ctx_Reactors_Get_Rmatrix_GR(
ctx);
4310 return api_util->get_float64_gr_array<VectorT>();
4312 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
4316 ctx_Reactors_Set_Rmatrix(
ctx, &value[0], value.size());
4323 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
4327 ctx_Reactors_Get_Xmatrix_GR(
ctx);
4328 return api_util->get_float64_gr_array<VectorT>();
4330 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
4334 ctx_Reactors_Set_Xmatrix(
ctx, &value[0], value.size());
4341 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
4345 ctx_Reactors_Get_Z_GR(
ctx);
4346 return api_util->get_float64_gr_array<VectorT>();
4348 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
4352 ctx_Reactors_Set_Z(
ctx, &value[0], value.size());
4365 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
4369 ctx_Reactors_Get_Z1_GR(
ctx);
4370 return api_util->get_float64_gr_array<VectorT>();
4372 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
4376 ctx_Reactors_Set_Z1(
ctx, &value[0], value.size());
4387 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
4391 ctx_Reactors_Get_Z2_GR(
ctx);
4392 return api_util->get_float64_gr_array<VectorT>();
4394 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
4398 ctx_Reactors_Set_Z2(
ctx, &value[0], value.size());
4409 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
4413 ctx_Reactors_Get_Z0_GR(
ctx);
4414 return api_util->get_float64_gr_array<VectorT>();
4416 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
4420 ctx_Reactors_Set_Z0(
ctx, &value[0], value.size());
4440 return api_util->get_string_array(ctx_Reclosers_Get_AllNames);
4449 return ctx_Reclosers_Get_Count(
ctx);
4458 return ctx_Reclosers_Get_First(
ctx);
4467 return ctx_Reclosers_Get_Name(
ctx);
4476 ctx_Reclosers_Set_Name(
ctx, value);
4481 return Name(value.c_str());
4490 return ctx_Reclosers_Get_Next(
ctx);
4499 return ctx_Reclosers_Get_idx(
ctx);
4508 ctx_Reclosers_Set_idx(
ctx, value);
4513 ctx_Reclosers_Close(
ctx);
4518 ctx_Reclosers_Open(
ctx);
4527 return ctx_Reclosers_Get_GroundInst(
ctx);
4532 ctx_Reclosers_Set_GroundInst(
ctx, value);
4542 return ctx_Reclosers_Get_GroundTrip(
ctx);
4547 ctx_Reclosers_Set_GroundTrip(
ctx, value);
4557 return ctx_Reclosers_Get_MonitoredObj(
ctx);
4562 ctx_Reclosers_Set_MonitoredObj(
ctx, value);
4568 ctx_Reclosers_Set_MonitoredObj(
ctx, value.c_str());
4578 return ctx_Reclosers_Get_MonitoredTerm(
ctx);
4583 ctx_Reclosers_Set_MonitoredTerm(
ctx, value);
4593 return ctx_Reclosers_Get_NumFast(
ctx);
4598 ctx_Reclosers_Set_NumFast(
ctx, value);
4608 return ctx_Reclosers_Get_PhaseInst(
ctx);
4613 ctx_Reclosers_Set_PhaseInst(
ctx, value);
4623 return ctx_Reclosers_Get_PhaseTrip(
ctx);
4628 ctx_Reclosers_Set_PhaseTrip(
ctx, value);
4635 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
4639 ctx_Reclosers_Get_RecloseIntervals_GR(
ctx);
4640 return api_util->get_float64_gr_array<VectorT>();
4649 return ctx_Reclosers_Get_Shots(
ctx);
4654 ctx_Reclosers_Set_Shots(
ctx, value);
4664 return ctx_Reclosers_Get_SwitchedObj(
ctx);
4669 ctx_Reclosers_Set_SwitchedObj(
ctx, value);
4675 ctx_Reclosers_Set_SwitchedObj(
ctx, value.c_str());
4685 return ctx_Reclosers_Get_SwitchedTerm(
ctx);
4690 ctx_Reclosers_Set_SwitchedTerm(
ctx, value);
4701 ctx_Reclosers_Reset(
ctx);
4712 return ctx_Reclosers_Get_State(
ctx);
4717 ctx_Reclosers_Set_State(
ctx, value);
4727 return ctx_Reclosers_Get_NormalState(
ctx);
4732 ctx_Reclosers_Set_NormalState(
ctx, value);
4752 return api_util->get_string_array(ctx_RegControls_Get_AllNames);
4761 return ctx_RegControls_Get_Count(
ctx);
4770 return ctx_RegControls_Get_First(
ctx);
4779 return ctx_RegControls_Get_Name(
ctx);
4788 ctx_RegControls_Set_Name(
ctx, value);
4793 return Name(value.c_str());
4802 return ctx_RegControls_Get_Next(
ctx);
4811 return ctx_RegControls_Get_idx(
ctx);
4820 ctx_RegControls_Set_idx(
ctx, value);
4825 ctx_RegControls_Reset(
ctx);
4834 return ctx_RegControls_Get_CTPrimary(
ctx);
4839 ctx_RegControls_Set_CTPrimary(
ctx, value);
4849 return ctx_RegControls_Get_Delay(
ctx);
4854 ctx_RegControls_Set_Delay(
ctx, value);
4864 return ctx_RegControls_Get_ForwardBand(
ctx);
4869 ctx_RegControls_Set_ForwardBand(
ctx, value);
4879 return ctx_RegControls_Get_ForwardR(
ctx);
4884 ctx_RegControls_Set_ForwardR(
ctx, value);
4894 return ctx_RegControls_Get_ForwardVreg(
ctx);
4899 ctx_RegControls_Set_ForwardVreg(
ctx, value);
4909 return ctx_RegControls_Get_ForwardX(
ctx);
4914 ctx_RegControls_Set_ForwardX(
ctx, value);
4924 return (ctx_RegControls_Get_IsInverseTime(
ctx) != 0);
4929 ctx_RegControls_Set_IsInverseTime(
ctx, value);
4939 return (ctx_RegControls_Get_IsReversible(
ctx) != 0);
4944 ctx_RegControls_Set_IsReversible(
ctx, value);
4954 return ctx_RegControls_Get_MaxTapChange(
ctx);
4959 ctx_RegControls_Set_MaxTapChange(
ctx, value);
4969 return ctx_RegControls_Get_MonitoredBus(
ctx);
4974 ctx_RegControls_Set_MonitoredBus(
ctx, value);
4980 ctx_RegControls_Set_MonitoredBus(
ctx, value.c_str());
4990 return ctx_RegControls_Get_PTratio(
ctx);
4995 ctx_RegControls_Set_PTratio(
ctx, value);
5005 return ctx_RegControls_Get_ReverseBand(
ctx);
5010 ctx_RegControls_Set_ReverseBand(
ctx, value);
5020 return ctx_RegControls_Get_ReverseR(
ctx);
5025 ctx_RegControls_Set_ReverseR(
ctx, value);
5035 return ctx_RegControls_Get_ReverseVreg(
ctx);
5040 ctx_RegControls_Set_ReverseVreg(
ctx, value);
5050 return ctx_RegControls_Get_ReverseX(
ctx);
5055 ctx_RegControls_Set_ReverseX(
ctx, value);
5065 return ctx_RegControls_Get_TapDelay(
ctx);
5070 ctx_RegControls_Set_TapDelay(
ctx, value);
5080 return ctx_RegControls_Get_TapNumber(
ctx);
5085 ctx_RegControls_Set_TapNumber(
ctx, value);
5095 return ctx_RegControls_Get_TapWinding(
ctx);
5100 ctx_RegControls_Set_TapWinding(
ctx, value);
5110 return ctx_RegControls_Get_Transformer(
ctx);
5115 ctx_RegControls_Set_Transformer(
ctx, value);
5121 ctx_RegControls_Set_Transformer(
ctx, value.c_str());
5131 return ctx_RegControls_Get_VoltageLimit(
ctx);
5136 ctx_RegControls_Set_VoltageLimit(
ctx, value);
5146 return ctx_RegControls_Get_Winding(
ctx);
5151 ctx_RegControls_Set_Winding(
ctx, value);
5171 return api_util->get_string_array(ctx_Relays_Get_AllNames);
5180 return ctx_Relays_Get_Count(
ctx);
5189 return ctx_Relays_Get_First(
ctx);
5198 return ctx_Relays_Get_Name(
ctx);
5207 ctx_Relays_Set_Name(
ctx, value);
5212 return Name(value.c_str());
5221 return ctx_Relays_Get_Next(
ctx);
5230 return ctx_Relays_Get_idx(
ctx);
5239 ctx_Relays_Set_idx(
ctx, value);
5248 return ctx_Relays_Get_MonitoredObj(
ctx);
5253 ctx_Relays_Set_MonitoredObj(
ctx, value);
5259 ctx_Relays_Set_MonitoredObj(
ctx, value.c_str());
5269 return ctx_Relays_Get_MonitoredTerm(
ctx);
5274 ctx_Relays_Set_MonitoredTerm(
ctx, value);
5284 return ctx_Relays_Get_SwitchedObj(
ctx);
5289 ctx_Relays_Set_SwitchedObj(
ctx, value);
5295 ctx_Relays_Set_SwitchedObj(
ctx, value.c_str());
5305 return ctx_Relays_Get_SwitchedTerm(
ctx);
5310 ctx_Relays_Set_SwitchedTerm(
ctx, value);
5319 ctx_Relays_Open(
ctx);
5327 ctx_Relays_Close(
ctx);
5337 ctx_Relays_Reset(
ctx);
5348 return ctx_Relays_Get_State(
ctx);
5353 ctx_Relays_Set_State(
ctx, value);
5363 return ctx_Relays_Get_NormalState(
ctx);
5368 ctx_Relays_Set_NormalState(
ctx, value);
5388 return api_util->get_string_array(ctx_Sensors_Get_AllNames);
5397 return ctx_Sensors_Get_Count(
ctx);
5406 return ctx_Sensors_Get_First(
ctx);
5415 return ctx_Sensors_Get_Name(
ctx);
5424 ctx_Sensors_Set_Name(
ctx, value);
5429 return Name(value.c_str());
5438 return ctx_Sensors_Get_Next(
ctx);
5447 return ctx_Sensors_Get_idx(
ctx);
5456 ctx_Sensors_Set_idx(
ctx, value);
5461 ctx_Sensors_Reset(
ctx);
5466 ctx_Sensors_ResetAll(
ctx);
5472 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
5476 ctx_Sensors_Get_Currents_GR(
ctx);
5477 return api_util->get_float64_gr_array<VectorT>();
5479 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
5483 ctx_Sensors_Set_Currents(
ctx, &value[0], value.size());
5493 return (ctx_Sensors_Get_IsDelta(
ctx) != 0);
5498 ctx_Sensors_Set_IsDelta(
ctx, value);
5508 return ctx_Sensors_Get_MeteredElement(
ctx);
5513 ctx_Sensors_Set_MeteredElement(
ctx, value);
5519 ctx_Sensors_Set_MeteredElement(
ctx, value.c_str());
5529 return ctx_Sensors_Get_MeteredTerminal(
ctx);
5534 ctx_Sensors_Set_MeteredTerminal(
ctx, value);
5544 return ctx_Sensors_Get_PctError(
ctx);
5549 ctx_Sensors_Set_PctError(
ctx, value);
5559 return (ctx_Sensors_Get_ReverseDelta(
ctx) != 0);
5564 ctx_Sensors_Set_ReverseDelta(
ctx, value);
5574 return ctx_Sensors_Get_Weight(
ctx);
5579 ctx_Sensors_Set_Weight(
ctx, value);
5586 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
5590 ctx_Sensors_Get_kVARS_GR(
ctx);
5591 return api_util->get_float64_gr_array<VectorT>();
5593 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
5597 ctx_Sensors_Set_kVARS(
ctx, &value[0], value.size());
5604 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
5608 ctx_Sensors_Get_kVS_GR(
ctx);
5609 return api_util->get_float64_gr_array<VectorT>();
5611 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
5615 ctx_Sensors_Set_kVS(
ctx, &value[0], value.size());
5625 return ctx_Sensors_Get_kVbase(
ctx);
5630 ctx_Sensors_Set_kVbase(
ctx, value);
5637 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
5641 ctx_Sensors_Get_kWS_GR(
ctx);
5642 return api_util->get_float64_gr_array<VectorT>();
5644 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
5648 ctx_Sensors_Set_kWS(
ctx, &value[0], value.size());
5655 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
5659 ctx_Sensors_Get_AllocationFactor_GR(
ctx);
5660 return api_util->get_float64_gr_array<VectorT>();
5679 return api_util->get_string_array(ctx_SwtControls_Get_AllNames);
5688 return ctx_SwtControls_Get_Count(
ctx);
5697 return ctx_SwtControls_Get_First(
ctx);
5706 return ctx_SwtControls_Get_Name(
ctx);
5715 ctx_SwtControls_Set_Name(
ctx, value);
5720 return Name(value.c_str());
5729 return ctx_SwtControls_Get_Next(
ctx);
5738 return ctx_SwtControls_Get_idx(
ctx);
5747 ctx_SwtControls_Set_idx(
ctx, value);
5752 ctx_SwtControls_Reset(
ctx);
5761 return ctx_SwtControls_Get_Action(
ctx);
5766 ctx_SwtControls_Set_Action(
ctx, value);
5776 return ctx_SwtControls_Get_Delay(
ctx);
5781 ctx_SwtControls_Set_Delay(
ctx, value);
5791 return (ctx_SwtControls_Get_IsLocked(
ctx) != 0);
5796 ctx_SwtControls_Set_IsLocked(
ctx, value);
5806 return ctx_SwtControls_Get_NormalState(
ctx);
5811 ctx_SwtControls_Set_NormalState(
ctx, value);
5821 return ctx_SwtControls_Get_State(
ctx);
5826 ctx_SwtControls_Set_State(
ctx, value);
5836 return ctx_SwtControls_Get_SwitchedObj(
ctx);
5841 ctx_SwtControls_Set_SwitchedObj(
ctx, value);
5847 ctx_SwtControls_Set_SwitchedObj(
ctx, value.c_str());
5857 return ctx_SwtControls_Get_SwitchedTerm(
ctx);
5862 ctx_SwtControls_Set_SwitchedTerm(
ctx, value);
5882 return api_util->get_string_array(ctx_TSData_Get_AllNames);
5891 return ctx_TSData_Get_Count(
ctx);
5900 return ctx_TSData_Get_First(
ctx);
5909 return ctx_TSData_Get_Name(
ctx);
5918 ctx_TSData_Set_Name(
ctx, value);
5923 return Name(value.c_str());
5932 return ctx_TSData_Get_Next(
ctx);
5941 return ctx_TSData_Get_idx(
ctx);
5950 ctx_TSData_Set_idx(
ctx, value);
5959 return ctx_TSData_Get_EmergAmps(
ctx);
5964 ctx_TSData_Set_EmergAmps(
ctx, value);
5974 return ctx_TSData_Get_NormAmps(
ctx);
5979 ctx_TSData_Set_NormAmps(
ctx, value);
5986 return ctx_TSData_Get_Rdc(
ctx);
5988 ITSData& Rdc(
double value)
5990 APIUtil::ErrorChecker error_checker(
api_util);
5991 ctx_TSData_Set_Rdc(
ctx, value);
5997 APIUtil::ErrorChecker error_checker(
api_util);
5998 return ctx_TSData_Get_Rac(
ctx);
6000 ITSData& Rac(
double value)
6002 APIUtil::ErrorChecker error_checker(
api_util);
6003 ctx_TSData_Set_Rac(
ctx, value);
6009 APIUtil::ErrorChecker error_checker(
api_util);
6010 return ctx_TSData_Get_GMRac(
ctx);
6012 ITSData& GMRac(
double value)
6014 APIUtil::ErrorChecker error_checker(
api_util);
6015 ctx_TSData_Set_GMRac(
ctx, value);
6021 APIUtil::ErrorChecker error_checker(
api_util);
6022 return ctx_TSData_Get_GMRUnits(
ctx);
6024 ITSData& GMRUnits(int32_t value)
6026 APIUtil::ErrorChecker error_checker(
api_util);
6027 ctx_TSData_Set_GMRUnits(
ctx, value);
6033 APIUtil::ErrorChecker error_checker(
api_util);
6034 return ctx_TSData_Get_Radius(
ctx);
6036 ITSData& Radius(
double value)
6038 APIUtil::ErrorChecker error_checker(
api_util);
6039 ctx_TSData_Set_Radius(
ctx, value);
6043 int32_t RadiusUnits()
6045 APIUtil::ErrorChecker error_checker(
api_util);
6046 return ctx_TSData_Get_RadiusUnits(
ctx);
6048 ITSData& RadiusUnits(int32_t value)
6050 APIUtil::ErrorChecker error_checker(
api_util);
6051 ctx_TSData_Set_RadiusUnits(
ctx, value);
6055 int32_t ResistanceUnits()
6057 APIUtil::ErrorChecker error_checker(
api_util);
6058 return ctx_TSData_Get_ResistanceUnits(
ctx);
6060 ITSData& ResistanceUnits(int32_t value)
6062 APIUtil::ErrorChecker error_checker(
api_util);
6063 ctx_TSData_Set_ResistanceUnits(
ctx, value);
6069 APIUtil::ErrorChecker error_checker(
api_util);
6070 return ctx_TSData_Get_Diameter(
ctx);
6072 ITSData& Diameter(
double value)
6074 APIUtil::ErrorChecker error_checker(
api_util);
6075 ctx_TSData_Set_Diameter(
ctx, value);
6081 APIUtil::ErrorChecker error_checker(
api_util);
6082 return ctx_TSData_Get_EpsR(
ctx);
6084 ITSData& EpsR(
double value)
6086 APIUtil::ErrorChecker error_checker(
api_util);
6087 ctx_TSData_Set_EpsR(
ctx, value);
6093 APIUtil::ErrorChecker error_checker(
api_util);
6094 return ctx_TSData_Get_InsLayer(
ctx);
6096 ITSData& InsLayer(
double value)
6098 APIUtil::ErrorChecker error_checker(
api_util);
6099 ctx_TSData_Set_InsLayer(
ctx, value);
6105 APIUtil::ErrorChecker error_checker(
api_util);
6106 return ctx_TSData_Get_DiaIns(
ctx);
6108 ITSData& DiaIns(
double value)
6110 APIUtil::ErrorChecker error_checker(
api_util);
6111 ctx_TSData_Set_DiaIns(
ctx, value);
6117 APIUtil::ErrorChecker error_checker(
api_util);
6118 return ctx_TSData_Get_DiaCable(
ctx);
6120 ITSData& DiaCable(
double value)
6122 APIUtil::ErrorChecker error_checker(
api_util);
6123 ctx_TSData_Set_DiaCable(
ctx, value);
6129 APIUtil::ErrorChecker error_checker(
api_util);
6130 return ctx_TSData_Get_DiaShield(
ctx);
6132 ITSData& DiaShield(
double value)
6134 APIUtil::ErrorChecker error_checker(
api_util);
6135 ctx_TSData_Set_DiaShield(
ctx, value);
6141 APIUtil::ErrorChecker error_checker(
api_util);
6142 return ctx_TSData_Get_TapeLayer(
ctx);
6144 ITSData& TapeLayer(
double value)
6146 APIUtil::ErrorChecker error_checker(
api_util);
6147 ctx_TSData_Set_TapeLayer(
ctx, value);
6153 APIUtil::ErrorChecker error_checker(
api_util);
6154 return ctx_TSData_Get_TapeLap(
ctx);
6156 ITSData& TapeLap(
double value)
6158 APIUtil::ErrorChecker error_checker(
api_util);
6159 ctx_TSData_Set_TapeLap(
ctx, value);
6180 ctx_Text_CommandBlock(
ctx, value.c_str());
6190 api_util->set_string_array(ctx_Text_CommandArray, value);
6199 return ctx_Text_Get_Command(
ctx);
6204 ctx_Text_Set_Command(
ctx, value);
6207 IText&
Command(
const string &value)
6210 ctx_Text_Set_Command(
ctx, value.c_str());
6220 return ctx_Text_Get_Result(
ctx);
6239 return ctx_Topology_Get_ActiveBranch(
ctx);
6248 return ctx_Topology_Get_ActiveLevel(
ctx);
6257 return api_util->get_string_array(ctx_Topology_Get_AllIsolatedBranches);
6266 return api_util->get_string_array(ctx_Topology_Get_AllIsolatedLoads);
6275 return api_util->get_string_array(ctx_Topology_Get_AllLoopedPairs);
6284 return ctx_Topology_Get_BackwardBranch(
ctx);
6293 return ctx_Topology_Get_BranchName(
ctx);
6298 ctx_Topology_Set_BranchName(
ctx, value);
6304 ctx_Topology_Set_BranchName(
ctx, value.c_str());
6314 return ctx_Topology_Get_BusName(
ctx);
6319 ctx_Topology_Set_BusName(
ctx, value);
6322 ITopology&
BusName(
const string &value)
6325 ctx_Topology_Set_BusName(
ctx, value.c_str());
6335 return ctx_Topology_Get_First(
ctx);
6344 return ctx_Topology_Get_FirstLoad(
ctx);
6353 return ctx_Topology_Get_ForwardBranch(
ctx);
6362 return ctx_Topology_Get_LoopedBranch(
ctx);
6371 return ctx_Topology_Get_Next(
ctx);
6380 return ctx_Topology_Get_NextLoad(
ctx);
6389 return ctx_Topology_Get_NumIsolatedBranches(
ctx);
6398 return ctx_Topology_Get_NumIsolatedLoads(
ctx);
6407 return ctx_Topology_Get_NumLoops(
ctx);
6416 return ctx_Topology_Get_ParallelBranch(
ctx);
6435 return api_util->get_string_array(ctx_Transformers_Get_AllNames);
6444 return ctx_Transformers_Get_Count(
ctx);
6453 return ctx_Transformers_Get_First(
ctx);
6462 return ctx_Transformers_Get_Name(
ctx);
6471 ctx_Transformers_Set_Name(
ctx, value);
6476 return Name(value.c_str());
6485 return ctx_Transformers_Get_Next(
ctx);
6494 return ctx_Transformers_Get_idx(
ctx);
6503 ctx_Transformers_Set_idx(
ctx, value);
6512 return (ctx_Transformers_Get_IsDelta(
ctx) != 0);
6517 ctx_Transformers_Set_IsDelta(
ctx, value);
6527 return ctx_Transformers_Get_MaxTap(
ctx);
6532 ctx_Transformers_Set_MaxTap(
ctx, value);
6542 return ctx_Transformers_Get_MinTap(
ctx);
6547 ctx_Transformers_Set_MinTap(
ctx, value);
6557 return ctx_Transformers_Get_NumTaps(
ctx);
6562 ctx_Transformers_Set_NumTaps(
ctx, value);
6572 return ctx_Transformers_Get_NumWindings(
ctx);
6577 ctx_Transformers_Set_NumWindings(
ctx, value);
6587 return ctx_Transformers_Get_R(
ctx);
6592 ctx_Transformers_Set_R(
ctx, value);
6602 return ctx_Transformers_Get_Rneut(
ctx);
6607 ctx_Transformers_Set_Rneut(
ctx, value);
6617 return ctx_Transformers_Get_Tap(
ctx);
6622 ctx_Transformers_Set_Tap(
ctx, value);
6632 return ctx_Transformers_Get_Wdg(
ctx);
6637 ctx_Transformers_Set_Wdg(
ctx, value);
6647 return ctx_Transformers_Get_XfmrCode(
ctx);
6652 ctx_Transformers_Set_XfmrCode(
ctx, value);
6655 ITransformers&
XfmrCode(
const string &value)
6658 ctx_Transformers_Set_XfmrCode(
ctx, value.c_str());
6668 return ctx_Transformers_Get_Xhl(
ctx);
6673 ctx_Transformers_Set_Xhl(
ctx, value);
6683 return ctx_Transformers_Get_Xht(
ctx);
6688 ctx_Transformers_Set_Xht(
ctx, value);
6698 return ctx_Transformers_Get_Xlt(
ctx);
6703 ctx_Transformers_Set_Xlt(
ctx, value);
6713 return ctx_Transformers_Get_Xneut(
ctx);
6718 ctx_Transformers_Set_Xneut(
ctx, value);
6728 return ctx_Transformers_Get_kV(
ctx);
6733 ctx_Transformers_Set_kV(
ctx, value);
6743 return ctx_Transformers_Get_kVA(
ctx);
6748 ctx_Transformers_Set_kVA(
ctx, value);
6755 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
6759 ctx_Transformers_Get_WdgVoltages_GR(
ctx);
6760 return api_util->get_float64_gr_array<VectorT>();
6766 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
6770 ctx_Transformers_Get_WdgCurrents_GR(
ctx);
6771 return api_util->get_float64_gr_array<VectorT>();
6780 return ctx_Transformers_Get_strWdgCurrents(
ctx);
6789 return ctx_Transformers_Get_CoreType(
ctx);
6794 ctx_Transformers_Set_CoreType(
ctx, value);
6804 return ctx_Transformers_Get_RdcOhms(
ctx);
6809 ctx_Transformers_Set_RdcOhms(
ctx, value);
6816 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
6820 ctx_Transformers_Get_LossesByType_GR(
ctx);
6821 return api_util->get_float64_gr_array<VectorT>();
6827 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
6831 ctx_Transformers_Get_AllLossesByType_GR(
ctx);
6832 return api_util->get_float64_gr_array<VectorT>();
6851 return api_util->get_string_array(ctx_Vsources_Get_AllNames);
6860 return ctx_Vsources_Get_Count(
ctx);
6869 return ctx_Vsources_Get_First(
ctx);
6878 return ctx_Vsources_Get_Name(
ctx);
6887 ctx_Vsources_Set_Name(
ctx, value);
6892 return Name(value.c_str());
6901 return ctx_Vsources_Get_Next(
ctx);
6910 return ctx_Vsources_Get_idx(
ctx);
6919 ctx_Vsources_Set_idx(
ctx, value);
6928 return ctx_Vsources_Get_AngleDeg(
ctx);
6933 ctx_Vsources_Set_AngleDeg(
ctx, value);
6943 return ctx_Vsources_Get_BasekV(
ctx);
6948 ctx_Vsources_Set_BasekV(
ctx, value);
6958 return ctx_Vsources_Get_Frequency(
ctx);
6963 ctx_Vsources_Set_Frequency(
ctx, value);
6973 return ctx_Vsources_Get_Phases(
ctx);
6978 ctx_Vsources_Set_Phases(
ctx, value);
6988 return ctx_Vsources_Get_pu(
ctx);
6993 ctx_Vsources_Set_pu(
ctx, value);
7013 return api_util->get_string_array(ctx_WireData_Get_AllNames);
7022 return ctx_WireData_Get_Count(
ctx);
7031 return ctx_WireData_Get_First(
ctx);
7040 return ctx_WireData_Get_Name(
ctx);
7049 ctx_WireData_Set_Name(
ctx, value);
7054 return Name(value.c_str());
7063 return ctx_WireData_Get_Next(
ctx);
7072 return ctx_WireData_Get_idx(
ctx);
7081 ctx_WireData_Set_idx(
ctx, value);
7090 return ctx_WireData_Get_EmergAmps(
ctx);
7095 ctx_WireData_Set_EmergAmps(
ctx, value);
7105 return ctx_WireData_Get_NormAmps(
ctx);
7110 ctx_WireData_Set_NormAmps(
ctx, value);
7117 return ctx_WireData_Get_Rdc(
ctx);
7119 IWireData& Rdc(
double value)
7121 APIUtil::ErrorChecker error_checker(
api_util);
7122 ctx_WireData_Set_Rdc(
ctx, value);
7128 APIUtil::ErrorChecker error_checker(
api_util);
7129 return ctx_WireData_Get_Rac(
ctx);
7131 IWireData& Rac(
double value)
7133 APIUtil::ErrorChecker error_checker(
api_util);
7134 ctx_WireData_Set_Rac(
ctx, value);
7140 APIUtil::ErrorChecker error_checker(
api_util);
7141 return ctx_WireData_Get_GMRac(
ctx);
7143 IWireData& GMRac(
double value)
7145 APIUtil::ErrorChecker error_checker(
api_util);
7146 ctx_WireData_Set_GMRac(
ctx, value);
7152 APIUtil::ErrorChecker error_checker(
api_util);
7153 return ctx_WireData_Get_GMRUnits(
ctx);
7155 IWireData& GMRUnits(int32_t value)
7157 APIUtil::ErrorChecker error_checker(
api_util);
7158 ctx_WireData_Set_GMRUnits(
ctx, value);
7164 APIUtil::ErrorChecker error_checker(
api_util);
7165 return ctx_WireData_Get_Radius(
ctx);
7167 IWireData& Radius(
double value)
7169 APIUtil::ErrorChecker error_checker(
api_util);
7170 ctx_WireData_Set_Radius(
ctx, value);
7174 int32_t RadiusUnits()
7176 APIUtil::ErrorChecker error_checker(
api_util);
7177 return ctx_WireData_Get_RadiusUnits(
ctx);
7179 IWireData& RadiusUnits(int32_t value)
7181 APIUtil::ErrorChecker error_checker(
api_util);
7182 ctx_WireData_Set_RadiusUnits(
ctx, value);
7186 int32_t ResistanceUnits()
7188 APIUtil::ErrorChecker error_checker(
api_util);
7189 return ctx_WireData_Get_ResistanceUnits(
ctx);
7191 IWireData& ResistanceUnits(int32_t value)
7193 APIUtil::ErrorChecker error_checker(
api_util);
7194 ctx_WireData_Set_ResistanceUnits(
ctx, value);
7200 APIUtil::ErrorChecker error_checker(
api_util);
7201 return ctx_WireData_Get_Diameter(
ctx);
7203 IWireData& Diameter(
double value)
7205 APIUtil::ErrorChecker error_checker(
api_util);
7206 ctx_WireData_Set_Diameter(
ctx, value);
7216 return ctx_WireData_Get_CapRadius(
ctx);
7221 ctx_WireData_Set_CapRadius(
ctx, value);
7241 return api_util->get_string_array(ctx_XYCurves_Get_AllNames);
7250 return ctx_XYCurves_Get_Count(
ctx);
7259 return ctx_XYCurves_Get_First(
ctx);
7268 return ctx_XYCurves_Get_Name(
ctx);
7277 ctx_XYCurves_Set_Name(
ctx, value);
7282 return Name(value.c_str());
7291 return ctx_XYCurves_Get_Next(
ctx);
7300 return ctx_XYCurves_Get_idx(
ctx);
7309 ctx_XYCurves_Set_idx(
ctx, value);
7318 return ctx_XYCurves_Get_Npts(
ctx);
7323 ctx_XYCurves_Set_Npts(
ctx, value);
7330 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
7334 ctx_XYCurves_Get_Xarray_GR(
ctx);
7335 return api_util->get_float64_gr_array<VectorT>();
7337 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
7341 ctx_XYCurves_Set_Xarray(
ctx, &value[0], value.size());
7351 return ctx_XYCurves_Get_Xscale(
ctx);
7356 ctx_XYCurves_Set_Xscale(
ctx, value);
7366 return ctx_XYCurves_Get_Xshift(
ctx);
7371 ctx_XYCurves_Set_Xshift(
ctx, value);
7378 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
7382 ctx_XYCurves_Get_Yarray_GR(
ctx);
7383 return api_util->get_float64_gr_array<VectorT>();
7385 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
7389 ctx_XYCurves_Set_Yarray(
ctx, &value[0], value.size());
7399 return ctx_XYCurves_Get_Yscale(
ctx);
7404 ctx_XYCurves_Set_Yscale(
ctx, value);
7414 return ctx_XYCurves_Get_Yshift(
ctx);
7419 ctx_XYCurves_Set_Yshift(
ctx, value);
7429 return ctx_XYCurves_Get_x(
ctx);
7434 ctx_XYCurves_Set_x(
ctx, value);
7444 return ctx_XYCurves_Get_y(
ctx);
7449 ctx_XYCurves_Set_y(
ctx, value);
7470 strings
List(
const char *regexp=
"")
7473 return api_util->get_string_array(ctx_ZIP_List, regexp);
7475 strings
List(
const string& regexp)
7477 return List(regexp.c_str());
7490 ctx_ZIP_Open(
ctx, FileName);
7503 ctx_ZIP_Open(
ctx, FileName.c_str());
7526 ctx_ZIP_Redirect(
ctx, FileInZip);
7539 ctx_ZIP_Redirect(
ctx, FileInZip.c_str());
7547 template <
typename VectorT=Eigen::Matrix<
int8_t, Eigen::Dynamic, 1>>
7551 ctx_ZIP_Extract_GR(
ctx, FileName);
7552 return api_util->get_int8_gr_array<VectorT>();
7560 template <
typename VectorT=Eigen::Matrix<
int8_t, Eigen::Dynamic, 1>>
7564 ctx_ZIP_Extract_GR(
ctx, FileName.c_str());
7565 return api_util->get_int8_gr_array<VectorT>();
7575 return (ctx_ZIP_Contains(
ctx, Name) != 0);
7585 return (ctx_ZIP_Contains(
ctx, Name.c_str()) != 0);
7604 return ctx_ActiveClass_Get_ActiveClassName(
ctx);
7613 return api_util->get_string_array(ctx_ActiveClass_Get_AllNames);
7622 return ctx_ActiveClass_Get_Count(
ctx);
7631 return ctx_ActiveClass_Get_First(
ctx);
7640 return ctx_ActiveClass_Get_Name(
ctx);
7645 ctx_ActiveClass_Set_Name(
ctx, value);
7648 IActiveClass&
Name(
const string &value)
7651 ctx_ActiveClass_Set_Name(
ctx, value.c_str());
7661 return ctx_ActiveClass_Get_Next(
ctx);
7670 return ctx_ActiveClass_Get_NumElements(
ctx);
7679 return ctx_ActiveClass_Get_ActiveClassParent(
ctx);
7694 return ctx_ActiveClass_ToJSON(
ctx, options);
7707 IBus& operator[](int32_t key)
7710 ctx_Circuit_SetActiveBusi(
ctx, key);
7714 IBus& operator[](
const char *key)
7717 ctx_Circuit_SetActiveBus(
ctx, key);
7720 IBus& operator[](
const string &key)
7722 return (*
this)[key.c_str()];
7731 return api_util->get_string_array(ctx_Bus_Get_AllPCEatBus);
7740 return api_util->get_string_array(ctx_Bus_Get_AllPDEatBus);
7742 int32_t GetUniqueNodeNumber(int32_t StartNumber)
7745 return ctx_Bus_GetUniqueNodeNumber(
ctx, StartNumber);
7750 return (ctx_Bus_ZscRefresh(
ctx) != 0);
7759 return (ctx_Bus_Get_Coorddefined(
ctx) != 0);
7765 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
7769 ctx_Bus_Get_CplxSeqVoltages_GR(
ctx);
7770 return api_util->get_float64_gr_array<VectorT>();
7779 return ctx_Bus_Get_Cust_Duration(
ctx);
7788 return ctx_Bus_Get_Cust_Interrupts(
ctx);
7797 return ctx_Bus_Get_Distance(
ctx);
7806 return ctx_Bus_Get_Int_Duration(
ctx);
7812 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
7816 ctx_Bus_Get_Isc_GR(
ctx);
7817 return api_util->get_float64_gr_array<VectorT>();
7826 return ctx_Bus_Get_Lambda(
ctx);
7835 return ctx_Bus_Get_N_Customers(
ctx);
7844 return ctx_Bus_Get_N_interrupts(
ctx);
7853 return ctx_Bus_Get_Name(
ctx);
7859 template <
typename VectorT=Eigen::Matrix<
int32_t, Eigen::Dynamic, 1>>
7863 ctx_Bus_Get_Nodes_GR(
ctx);
7864 return api_util->get_int32_gr_array<VectorT>();
7873 return ctx_Bus_Get_NumNodes(
ctx);
7882 return ctx_Bus_Get_SectionID(
ctx);
7888 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
7892 ctx_Bus_Get_SeqVoltages_GR(
ctx);
7893 return api_util->get_float64_gr_array<VectorT>();
7902 return ctx_Bus_Get_TotalMiles(
ctx);
7908 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
7912 ctx_Bus_Get_VLL_GR(
ctx);
7913 return api_util->get_float64_gr_array<VectorT>();
7919 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
7923 ctx_Bus_Get_VMagAngle_GR(
ctx);
7924 return api_util->get_float64_gr_array<VectorT>();
7930 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
7934 ctx_Bus_Get_Voc_GR(
ctx);
7935 return api_util->get_float64_gr_array<VectorT>();
7941 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
7945 ctx_Bus_Get_Voltages_GR(
ctx);
7946 return api_util->get_float64_gr_array<VectorT>();
7952 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
7956 ctx_Bus_Get_YscMatrix_GR(
ctx);
7957 return api_util->get_float64_gr_array<VectorT>();
7963 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
7967 ctx_Bus_Get_Zsc0_GR(
ctx);
7968 return api_util->get_float64_gr_array<VectorT>();
7974 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
7978 ctx_Bus_Get_Zsc1_GR(
ctx);
7979 return api_util->get_float64_gr_array<VectorT>();
7985 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
7989 ctx_Bus_Get_ZscMatrix_GR(
ctx);
7990 return api_util->get_float64_gr_array<VectorT>();
7999 return ctx_Bus_Get_kVBase(
ctx);
8005 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
8009 ctx_Bus_Get_puVLL_GR(
ctx);
8010 return api_util->get_float64_gr_array<VectorT>();
8016 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
8020 ctx_Bus_Get_puVmagAngle_GR(
ctx);
8021 return api_util->get_float64_gr_array<VectorT>();
8027 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
8031 ctx_Bus_Get_puVoltages_GR(
ctx);
8032 return api_util->get_float64_gr_array<VectorT>();
8038 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
8042 ctx_Bus_Get_ZSC012Matrix_GR(
ctx);
8043 return api_util->get_float64_gr_array<VectorT>();
8052 return ctx_Bus_Get_x(
ctx);
8054 IBus&
x(
double value)
8057 ctx_Bus_Set_x(
ctx, value);
8067 return ctx_Bus_Get_y(
ctx);
8069 IBus&
y(
double value)
8072 ctx_Bus_Set_y(
ctx, value);
8082 return api_util->get_string_array(ctx_Bus_Get_LoadList);
8091 return api_util->get_string_array(ctx_Bus_Get_LineList);
8111 return api_util->get_string_array(ctx_CNData_Get_AllNames);
8120 return ctx_CNData_Get_Count(
ctx);
8129 return ctx_CNData_Get_First(
ctx);
8138 return ctx_CNData_Get_Name(
ctx);
8147 ctx_CNData_Set_Name(
ctx, value);
8152 return Name(value.c_str());
8161 return ctx_CNData_Get_Next(
ctx);
8170 return ctx_CNData_Get_idx(
ctx);
8179 ctx_CNData_Set_idx(
ctx, value);
8188 return ctx_CNData_Get_EmergAmps(
ctx);
8193 ctx_CNData_Set_EmergAmps(
ctx, value);
8203 return ctx_CNData_Get_NormAmps(
ctx);
8208 ctx_CNData_Set_NormAmps(
ctx, value);
8215 return ctx_CNData_Get_Rdc(
ctx);
8217 ICNData& Rdc(
double value)
8219 APIUtil::ErrorChecker error_checker(
api_util);
8220 ctx_CNData_Set_Rdc(
ctx, value);
8226 APIUtil::ErrorChecker error_checker(
api_util);
8227 return ctx_CNData_Get_Rac(
ctx);
8229 ICNData& Rac(
double value)
8231 APIUtil::ErrorChecker error_checker(
api_util);
8232 ctx_CNData_Set_Rac(
ctx, value);
8238 APIUtil::ErrorChecker error_checker(
api_util);
8239 return ctx_CNData_Get_GMRac(
ctx);
8241 ICNData& GMRac(
double value)
8243 APIUtil::ErrorChecker error_checker(
api_util);
8244 ctx_CNData_Set_GMRac(
ctx, value);
8250 APIUtil::ErrorChecker error_checker(
api_util);
8251 return ctx_CNData_Get_GMRUnits(
ctx);
8253 ICNData& GMRUnits(int32_t value)
8255 APIUtil::ErrorChecker error_checker(
api_util);
8256 ctx_CNData_Set_GMRUnits(
ctx, value);
8262 APIUtil::ErrorChecker error_checker(
api_util);
8263 return ctx_CNData_Get_Radius(
ctx);
8265 ICNData& Radius(
double value)
8267 APIUtil::ErrorChecker error_checker(
api_util);
8268 ctx_CNData_Set_Radius(
ctx, value);
8272 int32_t RadiusUnits()
8274 APIUtil::ErrorChecker error_checker(
api_util);
8275 return ctx_CNData_Get_RadiusUnits(
ctx);
8277 ICNData& RadiusUnits(int32_t value)
8279 APIUtil::ErrorChecker error_checker(
api_util);
8280 ctx_CNData_Set_RadiusUnits(
ctx, value);
8284 int32_t ResistanceUnits()
8286 APIUtil::ErrorChecker error_checker(
api_util);
8287 return ctx_CNData_Get_ResistanceUnits(
ctx);
8289 ICNData& ResistanceUnits(int32_t value)
8291 APIUtil::ErrorChecker error_checker(
api_util);
8292 ctx_CNData_Set_ResistanceUnits(
ctx, value);
8298 APIUtil::ErrorChecker error_checker(
api_util);
8299 return ctx_CNData_Get_Diameter(
ctx);
8301 ICNData& Diameter(
double value)
8303 APIUtil::ErrorChecker error_checker(
api_util);
8304 ctx_CNData_Set_Diameter(
ctx, value);
8310 APIUtil::ErrorChecker error_checker(
api_util);
8311 return ctx_CNData_Get_EpsR(
ctx);
8313 ICNData& EpsR(
double value)
8315 APIUtil::ErrorChecker error_checker(
api_util);
8316 ctx_CNData_Set_EpsR(
ctx, value);
8322 APIUtil::ErrorChecker error_checker(
api_util);
8323 return ctx_CNData_Get_InsLayer(
ctx);
8325 ICNData& InsLayer(
double value)
8327 APIUtil::ErrorChecker error_checker(
api_util);
8328 ctx_CNData_Set_InsLayer(
ctx, value);
8334 APIUtil::ErrorChecker error_checker(
api_util);
8335 return ctx_CNData_Get_DiaIns(
ctx);
8337 ICNData& DiaIns(
double value)
8339 APIUtil::ErrorChecker error_checker(
api_util);
8340 ctx_CNData_Set_DiaIns(
ctx, value);
8346 APIUtil::ErrorChecker error_checker(
api_util);
8347 return ctx_CNData_Get_DiaCable(
ctx);
8349 ICNData& DiaCable(
double value)
8351 APIUtil::ErrorChecker error_checker(
api_util);
8352 ctx_CNData_Set_DiaCable(
ctx, value);
8358 APIUtil::ErrorChecker error_checker(
api_util);
8359 return ctx_CNData_Get_k(
ctx);
8361 ICNData& k(int32_t value)
8363 APIUtil::ErrorChecker error_checker(
api_util);
8364 ctx_CNData_Set_k(
ctx, value);
8370 APIUtil::ErrorChecker error_checker(
api_util);
8371 return ctx_CNData_Get_DiaStrand(
ctx);
8373 ICNData& DiaStrand(
double value)
8375 APIUtil::ErrorChecker error_checker(
api_util);
8376 ctx_CNData_Set_DiaStrand(
ctx, value);
8382 APIUtil::ErrorChecker error_checker(
api_util);
8383 return ctx_CNData_Get_GmrStrand(
ctx);
8385 ICNData& GmrStrand(
double value)
8387 APIUtil::ErrorChecker error_checker(
api_util);
8388 ctx_CNData_Set_GmrStrand(
ctx, value);
8394 APIUtil::ErrorChecker error_checker(
api_util);
8395 return ctx_CNData_Get_RStrand(
ctx);
8397 ICNData& RStrand(
double value)
8399 APIUtil::ErrorChecker error_checker(
api_util);
8400 ctx_CNData_Set_RStrand(
ctx, value);
8420 return api_util->get_string_array(ctx_CapControls_Get_AllNames);
8429 return ctx_CapControls_Get_Count(
ctx);
8438 return ctx_CapControls_Get_First(
ctx);
8447 return ctx_CapControls_Get_Name(
ctx);
8456 ctx_CapControls_Set_Name(
ctx, value);
8461 return Name(value.c_str());
8470 return ctx_CapControls_Get_Next(
ctx);
8479 return ctx_CapControls_Get_idx(
ctx);
8488 ctx_CapControls_Set_idx(
ctx, value);
8493 ctx_CapControls_Reset(
ctx);
8502 return ctx_CapControls_Get_CTratio(
ctx);
8507 ctx_CapControls_Set_CTratio(
ctx, value);
8517 return ctx_CapControls_Get_Capacitor(
ctx);
8522 ctx_CapControls_Set_Capacitor(
ctx, value);
8525 ICapControls&
Capacitor(
const string &value)
8528 ctx_CapControls_Set_Capacitor(
ctx, value.c_str());
8534 APIUtil::ErrorChecker error_checker(
api_util);
8535 return ctx_CapControls_Get_DeadTime(
ctx);
8537 ICapControls& DeadTime(
double value)
8539 APIUtil::ErrorChecker error_checker(
api_util);
8540 ctx_CapControls_Set_DeadTime(
ctx, value);
8550 return ctx_CapControls_Get_Delay(
ctx);
8555 ctx_CapControls_Set_Delay(
ctx, value);
8565 return ctx_CapControls_Get_DelayOff(
ctx);
8570 ctx_CapControls_Set_DelayOff(
ctx, value);
8580 return ctx_CapControls_Get_Mode(
ctx);
8585 ctx_CapControls_Set_Mode(
ctx, value);
8595 return ctx_CapControls_Get_MonitoredObj(
ctx);
8600 ctx_CapControls_Set_MonitoredObj(
ctx, value);
8606 ctx_CapControls_Set_MonitoredObj(
ctx, value.c_str());
8616 return ctx_CapControls_Get_MonitoredTerm(
ctx);
8621 ctx_CapControls_Set_MonitoredTerm(
ctx, value);
8631 return ctx_CapControls_Get_OFFSetting(
ctx);
8636 ctx_CapControls_Set_OFFSetting(
ctx, value);
8646 return ctx_CapControls_Get_ONSetting(
ctx);
8651 ctx_CapControls_Set_ONSetting(
ctx, value);
8661 return ctx_CapControls_Get_PTratio(
ctx);
8666 ctx_CapControls_Set_PTratio(
ctx, value);
8676 return (ctx_CapControls_Get_UseVoltOverride(
ctx) != 0);
8681 ctx_CapControls_Set_UseVoltOverride(
ctx, value);
8691 return ctx_CapControls_Get_Vmax(
ctx);
8696 ctx_CapControls_Set_Vmax(
ctx, value);
8706 return ctx_CapControls_Get_Vmin(
ctx);
8711 ctx_CapControls_Set_Vmin(
ctx, value);
8731 return api_util->get_string_array(ctx_Capacitors_Get_AllNames);
8740 return ctx_Capacitors_Get_Count(
ctx);
8749 return ctx_Capacitors_Get_First(
ctx);
8758 return ctx_Capacitors_Get_Name(
ctx);
8767 ctx_Capacitors_Set_Name(
ctx, value);
8772 return Name(value.c_str());
8781 return ctx_Capacitors_Get_Next(
ctx);
8790 return ctx_Capacitors_Get_idx(
ctx);
8799 ctx_Capacitors_Set_idx(
ctx, value);
8804 return (ctx_Capacitors_AddStep(
ctx) != 0);
8809 ctx_Capacitors_Close(
ctx);
8813 APIUtil::ErrorChecker error_checker(
api_util);
8814 ctx_Capacitors_Open(
ctx);
8818 APIUtil::ErrorChecker error_checker(
api_util);
8819 return (ctx_Capacitors_SubtractStep(
ctx) != 0);
8828 return ctx_Capacitors_Get_AvailableSteps(
ctx);
8837 return (ctx_Capacitors_Get_IsDelta(
ctx) != 0);
8842 ctx_Capacitors_Set_IsDelta(
ctx, value);
8852 return ctx_Capacitors_Get_NumSteps(
ctx);
8857 ctx_Capacitors_Set_NumSteps(
ctx, value);
8864 template <
typename VectorT=Eigen::Matrix<
int32_t, Eigen::Dynamic, 1>>
8868 ctx_Capacitors_Get_States_GR(
ctx);
8869 return api_util->get_int32_gr_array<VectorT>();
8871 template <
typename VectorT=Eigen::Matrix<
int32_t, Eigen::Dynamic, 1>>
8875 ctx_Capacitors_Set_States(
ctx, &value[0], value.size());
8885 return ctx_Capacitors_Get_kV(
ctx);
8890 ctx_Capacitors_Set_kV(
ctx, value);
8900 return ctx_Capacitors_Get_kvar(
ctx);
8905 ctx_Capacitors_Set_kvar(
ctx, value);
8921 ctx_CtrlQueue_ClearActions(
ctx);
8926 ctx_CtrlQueue_ClearQueue(
ctx);
8928 void Delete(int32_t ActionHandle)
8931 ctx_CtrlQueue_Delete(
ctx, ActionHandle);
8936 ctx_CtrlQueue_DoAllQueue(
ctx);
8941 ctx_CtrlQueue_Show(
ctx);
8950 return ctx_CtrlQueue_Get_ActionCode(
ctx);
8959 return ctx_CtrlQueue_Get_DeviceHandle(
ctx);
8968 return ctx_CtrlQueue_Get_NumActions(
ctx);
8985 return ctx_CtrlQueue_Get_PopAction(
ctx);
8994 return api_util->get_string_array(ctx_CtrlQueue_Get_Queue);
9003 return ctx_CtrlQueue_Get_QueueSize(
ctx);
9012 ctx_CtrlQueue_Set_Action(
ctx, value);
9034 return api_util->get_string_array(ctx_DSSElement_Get_AllPropertyNames);
9043 return ctx_DSSElement_Get_Name(
ctx);
9052 return ctx_DSSElement_Get_NumProperties(
ctx);
9065 return ctx_DSSElement_ToJSON(
ctx, options);
9084 return api_util->get_string_array(ctx_LineGeometries_Get_AllNames);
9093 return ctx_LineGeometries_Get_Count(
ctx);
9102 return ctx_LineGeometries_Get_First(
ctx);
9111 return ctx_LineGeometries_Get_Name(
ctx);
9120 ctx_LineGeometries_Set_Name(
ctx, value);
9125 return Name(value.c_str());
9134 return ctx_LineGeometries_Get_Next(
ctx);
9143 return ctx_LineGeometries_Get_idx(
ctx);
9152 ctx_LineGeometries_Set_idx(
ctx, value);
9161 return api_util->get_string_array(ctx_LineGeometries_Get_Conductors);
9170 return ctx_LineGeometries_Get_EmergAmps(
ctx);
9175 ctx_LineGeometries_Set_EmergAmps(
ctx, value);
9185 return ctx_LineGeometries_Get_NormAmps(
ctx);
9190 ctx_LineGeometries_Set_NormAmps(
ctx, value);
9197 return ctx_LineGeometries_Get_RhoEarth(
ctx);
9199 ILineGeometries& RhoEarth(
double value)
9201 APIUtil::ErrorChecker error_checker(
api_util);
9202 ctx_LineGeometries_Set_RhoEarth(
ctx, value);
9208 APIUtil::ErrorChecker error_checker(
api_util);
9209 return (ctx_LineGeometries_Get_Reduce(
ctx) != 0);
9211 ILineGeometries& Reduce(
bool value)
9213 APIUtil::ErrorChecker error_checker(
api_util);
9214 ctx_LineGeometries_Set_Reduce(
ctx, value);
9224 return ctx_LineGeometries_Get_Phases(
ctx);
9229 ctx_LineGeometries_Set_Phases(
ctx, value);
9235 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
9236 VectorT
Rmatrix(
double Frequency,
double Length, int32_t Units)
9239 ctx_LineGeometries_Get_Rmatrix_GR(
ctx, Frequency, Length, Units);
9240 return api_util->get_float64_gr_array<VectorT>();
9245 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
9246 VectorT
Xmatrix(
double Frequency,
double Length, int32_t Units)
9249 ctx_LineGeometries_Get_Xmatrix_GR(
ctx, Frequency, Length, Units);
9250 return api_util->get_float64_gr_array<VectorT>();
9255 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
9256 VectorT
Zmatrix(
double Frequency,
double Length, int32_t Units)
9259 ctx_LineGeometries_Get_Zmatrix_GR(
ctx, Frequency, Length, Units);
9260 return api_util->get_float64_gr_array<VectorT>();
9265 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
9266 VectorT
Cmatrix(
double Frequency,
double Length, int32_t Units)
9269 ctx_LineGeometries_Get_Cmatrix_GR(
ctx, Frequency, Length, Units);
9270 return api_util->get_float64_gr_array<VectorT>();
9273 template <
typename VectorT=Eigen::Matrix<
int32_t, Eigen::Dynamic, 1>>
9277 ctx_LineGeometries_Get_Units_GR(
ctx);
9278 return api_util->get_int32_gr_array<VectorT>();
9280 template <
typename VectorT=Eigen::Matrix<
int32_t, Eigen::Dynamic, 1>>
9281 ILineGeometries& Units(
const VectorT &value)
9284 ctx_LineGeometries_Set_Units(
ctx, &value[0], value.size());
9291 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
9295 ctx_LineGeometries_Get_Xcoords_GR(
ctx);
9296 return api_util->get_float64_gr_array<VectorT>();
9298 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
9302 ctx_LineGeometries_Set_Xcoords(
ctx, &value[0], value.size());
9309 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
9313 ctx_LineGeometries_Get_Ycoords_GR(
ctx);
9314 return api_util->get_float64_gr_array<VectorT>();
9316 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
9320 ctx_LineGeometries_Set_Ycoords(
ctx, &value[0], value.size());
9330 return ctx_LineGeometries_Get_Nconds(
ctx);
9335 ctx_LineGeometries_Set_Nconds(
ctx, value);
9355 return api_util->get_string_array(ctx_Lines_Get_AllNames);
9364 return ctx_Lines_Get_Count(
ctx);
9373 return ctx_Lines_Get_First(
ctx);
9382 return ctx_Lines_Get_Name(
ctx);
9391 ctx_Lines_Set_Name(
ctx, value);
9396 return Name(value.c_str());
9405 return ctx_Lines_Get_Next(
ctx);
9414 return ctx_Lines_Get_idx(
ctx);
9423 ctx_Lines_Set_idx(
ctx, value);
9425 int32_t New(
const char *
Name)
9428 return ctx_Lines_New(
ctx,
Name);
9430 int32_t New(
const string &
Name)
9433 return ctx_Lines_New(
ctx,
Name.c_str());
9442 return ctx_Lines_Get_Bus1(
ctx);
9447 ctx_Lines_Set_Bus1(
ctx, value);
9450 ILines&
Bus1(
const string &value)
9453 ctx_Lines_Set_Bus1(
ctx, value.c_str());
9463 return ctx_Lines_Get_Bus2(
ctx);
9468 ctx_Lines_Set_Bus2(
ctx, value);
9471 ILines&
Bus2(
const string &value)
9474 ctx_Lines_Set_Bus2(
ctx, value.c_str());
9484 return ctx_Lines_Get_C0(
ctx);
9489 ctx_Lines_Set_C0(
ctx, value);
9499 return ctx_Lines_Get_C1(
ctx);
9504 ctx_Lines_Set_C1(
ctx, value);
9508 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
9512 ctx_Lines_Get_Cmatrix_GR(
ctx);
9513 return api_util->get_float64_gr_array<VectorT>();
9515 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
9516 ILines& Cmatrix(
const VectorT &value)
9518 APIUtil::ErrorChecker error_checker(
api_util);
9519 ctx_Lines_Set_Cmatrix(
ctx, &value[0], value.size());
9529 return ctx_Lines_Get_EmergAmps(
ctx);
9534 ctx_Lines_Set_EmergAmps(
ctx, value);
9544 return ctx_Lines_Get_Geometry(
ctx);
9549 ctx_Lines_Set_Geometry(
ctx, value);
9552 ILines&
Geometry(
const string &value)
9555 ctx_Lines_Set_Geometry(
ctx, value.c_str());
9565 return ctx_Lines_Get_Length(
ctx);
9570 ctx_Lines_Set_Length(
ctx, value);
9580 return ctx_Lines_Get_LineCode(
ctx);
9585 ctx_Lines_Set_LineCode(
ctx, value);
9588 ILines&
LineCode(
const string &value)
9591 ctx_Lines_Set_LineCode(
ctx, value.c_str());
9601 return ctx_Lines_Get_NormAmps(
ctx);
9606 ctx_Lines_Set_NormAmps(
ctx, value);
9616 return ctx_Lines_Get_NumCust(
ctx);
9625 return ctx_Lines_Get_Parent(
ctx);
9634 return ctx_Lines_Get_Phases(
ctx);
9639 ctx_Lines_Set_Phases(
ctx, value);
9649 return ctx_Lines_Get_R0(
ctx);
9654 ctx_Lines_Set_R0(
ctx, value);
9664 return ctx_Lines_Get_R1(
ctx);
9669 ctx_Lines_Set_R1(
ctx, value);
9679 return ctx_Lines_Get_Rg(
ctx);
9684 ctx_Lines_Set_Rg(
ctx, value);
9694 return ctx_Lines_Get_Rho(
ctx);
9699 ctx_Lines_Set_Rho(
ctx, value);
9706 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
9710 ctx_Lines_Get_Rmatrix_GR(
ctx);
9711 return api_util->get_float64_gr_array<VectorT>();
9713 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
9717 ctx_Lines_Set_Rmatrix(
ctx, &value[0], value.size());
9727 return ctx_Lines_Get_Spacing(
ctx);
9732 ctx_Lines_Set_Spacing(
ctx, value);
9735 ILines&
Spacing(
const string &value)
9738 ctx_Lines_Set_Spacing(
ctx, value.c_str());
9748 return ctx_Lines_Get_TotalCust(
ctx);
9754 return ctx_Lines_Get_Units(
ctx);
9756 ILines& Units(int32_t value)
9759 ctx_Lines_Set_Units(
ctx, value);
9769 return ctx_Lines_Get_X0(
ctx);
9774 ctx_Lines_Set_X0(
ctx, value);
9784 return ctx_Lines_Get_X1(
ctx);
9789 ctx_Lines_Set_X1(
ctx, value);
9799 return ctx_Lines_Get_Xg(
ctx);
9804 ctx_Lines_Set_Xg(
ctx, value);
9808 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
9812 ctx_Lines_Get_Xmatrix_GR(
ctx);
9813 return api_util->get_float64_gr_array<VectorT>();
9815 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
9816 ILines& Xmatrix(
const VectorT &value)
9818 APIUtil::ErrorChecker error_checker(
api_util);
9819 ctx_Lines_Set_Xmatrix(
ctx, &value[0], value.size());
9826 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
9830 ctx_Lines_Get_Yprim_GR(
ctx);
9831 return api_util->get_float64_gr_array<VectorT>();
9833 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
9837 ctx_Lines_Set_Yprim(
ctx, &value[0], value.size());
9847 return ctx_Lines_Get_SeasonRating(
ctx);
9856 return (ctx_Lines_Get_IsSwitch(
ctx) != 0);
9861 ctx_Lines_Set_IsSwitch(
ctx, value);
9881 return api_util->get_string_array(ctx_Loads_Get_AllNames);
9890 return ctx_Loads_Get_Count(
ctx);
9899 return ctx_Loads_Get_First(
ctx);
9908 return ctx_Loads_Get_Name(
ctx);
9917 ctx_Loads_Set_Name(
ctx, value);
9922 return Name(value.c_str());
9931 return ctx_Loads_Get_Next(
ctx);
9940 return ctx_Loads_Get_idx(
ctx);
9949 ctx_Loads_Set_idx(
ctx, value);
9958 return ctx_Loads_Get_AllocationFactor(
ctx);
9963 ctx_Loads_Set_AllocationFactor(
ctx, value);
9973 return ctx_Loads_Get_CVRcurve(
ctx);
9978 ctx_Loads_Set_CVRcurve(
ctx, value);
9981 ILoads&
CVRcurve(
const string &value)
9984 ctx_Loads_Set_CVRcurve(
ctx, value.c_str());
9994 return ctx_Loads_Get_CVRvars(
ctx);
9999 ctx_Loads_Set_CVRvars(
ctx, value);
10009 return ctx_Loads_Get_CVRwatts(
ctx);
10014 ctx_Loads_Set_CVRwatts(
ctx, value);
10024 return ctx_Loads_Get_Cfactor(
ctx);
10029 ctx_Loads_Set_Cfactor(
ctx, value);
10036 return ctx_Loads_Get_Class_(
ctx);
10038 ILoads& Class(int32_t value)
10040 APIUtil::ErrorChecker error_checker(
api_util);
10041 ctx_Loads_Set_Class_(
ctx, value);
10051 return ctx_Loads_Get_Growth(
ctx);
10056 ctx_Loads_Set_Growth(
ctx, value);
10059 ILoads&
Growth(
const string &value)
10062 ctx_Loads_Set_Growth(
ctx, value.c_str());
10072 return (ctx_Loads_Get_IsDelta(
ctx) != 0);
10077 ctx_Loads_Set_IsDelta(
ctx, value);
10087 return ctx_Loads_Get_Model(
ctx);
10092 ctx_Loads_Set_Model(
ctx, value);
10102 return ctx_Loads_Get_NumCust(
ctx);
10107 ctx_Loads_Set_NumCust(
ctx, value);
10117 return ctx_Loads_Get_PF(
ctx);
10122 ctx_Loads_Set_PF(
ctx, value);
10132 return ctx_Loads_Get_PctMean(
ctx);
10137 ctx_Loads_Set_PctMean(
ctx, value);
10147 return ctx_Loads_Get_PctStdDev(
ctx);
10152 ctx_Loads_Set_PctStdDev(
ctx, value);
10162 return ctx_Loads_Get_RelWeight(
ctx);
10167 ctx_Loads_Set_RelWeight(
ctx, value);
10177 return ctx_Loads_Get_Rneut(
ctx);
10182 ctx_Loads_Set_Rneut(
ctx, value);
10192 return ctx_Loads_Get_Spectrum(
ctx);
10197 ctx_Loads_Set_Spectrum(
ctx, value);
10200 ILoads&
Spectrum(
const string &value)
10203 ctx_Loads_Set_Spectrum(
ctx, value.c_str());
10213 return ctx_Loads_Get_Status(
ctx);
10218 ctx_Loads_Set_Status(
ctx, value);
10228 return ctx_Loads_Get_Vmaxpu(
ctx);
10233 ctx_Loads_Set_Vmaxpu(
ctx, value);
10243 return ctx_Loads_Get_Vminemerg(
ctx);
10248 ctx_Loads_Set_Vminemerg(
ctx, value);
10258 return ctx_Loads_Get_Vminnorm(
ctx);
10263 ctx_Loads_Set_Vminnorm(
ctx, value);
10273 return ctx_Loads_Get_Vminpu(
ctx);
10278 ctx_Loads_Set_Vminpu(
ctx, value);
10288 return ctx_Loads_Get_Xneut(
ctx);
10293 ctx_Loads_Set_Xneut(
ctx, value);
10303 return ctx_Loads_Get_Yearly(
ctx);
10308 ctx_Loads_Set_Yearly(
ctx, value);
10311 ILoads&
Yearly(
const string &value)
10314 ctx_Loads_Set_Yearly(
ctx, value.c_str());
10321 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
10325 ctx_Loads_Get_ZIPV_GR(
ctx);
10326 return api_util->get_float64_gr_array<VectorT>();
10328 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
10332 ctx_Loads_Set_ZIPV(
ctx, &value[0], value.size());
10342 return ctx_Loads_Get_daily(
ctx);
10347 ctx_Loads_Set_daily(
ctx, value);
10350 ILoads&
daily(
const string &value)
10353 ctx_Loads_Set_daily(
ctx, value.c_str());
10363 return ctx_Loads_Get_duty(
ctx);
10368 ctx_Loads_Set_duty(
ctx, value);
10371 ILoads&
duty(
const string &value)
10374 ctx_Loads_Set_duty(
ctx, value.c_str());
10384 return ctx_Loads_Get_kV(
ctx);
10389 ctx_Loads_Set_kV(
ctx, value);
10399 return ctx_Loads_Get_kW(
ctx);
10404 ctx_Loads_Set_kW(
ctx, value);
10414 return ctx_Loads_Get_kva(
ctx);
10419 ctx_Loads_Set_kva(
ctx, value);
10429 return ctx_Loads_Get_kvar(
ctx);
10434 ctx_Loads_Set_kvar(
ctx, value);
10444 return ctx_Loads_Get_kwh(
ctx);
10449 ctx_Loads_Set_kwh(
ctx, value);
10459 return ctx_Loads_Get_kwhdays(
ctx);
10464 ctx_Loads_Set_kwhdays(
ctx, value);
10474 return ctx_Loads_Get_pctSeriesRL(
ctx);
10479 ctx_Loads_Set_pctSeriesRL(
ctx, value);
10489 return ctx_Loads_Get_xfkVA(
ctx);
10494 ctx_Loads_Set_xfkVA(
ctx, value);
10504 return ctx_Loads_Get_Sensor(
ctx);
10513 return ctx_Loads_Get_Phases(
ctx);
10518 ctx_Loads_Set_Phases(
ctx, value);
10538 return (ctx_Settings_Get_AllowDuplicates(
ctx) != 0);
10543 ctx_Settings_Set_AllowDuplicates(
ctx, value);
10553 return ctx_Settings_Get_AutoBusList(
ctx);
10558 ctx_Settings_Set_AutoBusList(
ctx, value);
10564 ctx_Settings_Set_AutoBusList(
ctx, value.c_str());
10574 return ctx_Settings_Get_CktModel(
ctx);
10579 ctx_Settings_Set_CktModel(
ctx, value);
10589 return (ctx_Settings_Get_ControlTrace(
ctx) != 0);
10594 ctx_Settings_Set_ControlTrace(
ctx, value);
10604 return ctx_Settings_Get_EmergVmaxpu(
ctx);
10609 ctx_Settings_Set_EmergVmaxpu(
ctx, value);
10619 return ctx_Settings_Get_EmergVminpu(
ctx);
10624 ctx_Settings_Set_EmergVminpu(
ctx, value);
10631 template <
typename VectorT=Eigen::Matrix<
int32_t, Eigen::Dynamic, 1>>
10635 ctx_Settings_Get_LossRegs_GR(
ctx);
10636 return api_util->get_int32_gr_array<VectorT>();
10638 template <
typename VectorT=Eigen::Matrix<
int32_t, Eigen::Dynamic, 1>>
10642 ctx_Settings_Set_LossRegs(
ctx, &value[0], value.size());
10652 return ctx_Settings_Get_LossWeight(
ctx);
10657 ctx_Settings_Set_LossWeight(
ctx, value);
10667 return ctx_Settings_Get_NormVmaxpu(
ctx);
10672 ctx_Settings_Set_NormVmaxpu(
ctx, value);
10682 return ctx_Settings_Get_NormVminpu(
ctx);
10687 ctx_Settings_Set_NormVminpu(
ctx, value);
10697 return ctx_Settings_Get_PriceCurve(
ctx);
10702 ctx_Settings_Set_PriceCurve(
ctx, value);
10708 ctx_Settings_Set_PriceCurve(
ctx, value.c_str());
10718 return ctx_Settings_Get_PriceSignal(
ctx);
10723 ctx_Settings_Set_PriceSignal(
ctx, value);
10733 return (ctx_Settings_Get_Trapezoidal(
ctx) != 0);
10738 ctx_Settings_Set_Trapezoidal(
ctx, value);
10745 template <
typename VectorT=Eigen::Matrix<
int32_t, Eigen::Dynamic, 1>>
10749 ctx_Settings_Get_UEregs_GR(
ctx);
10750 return api_util->get_int32_gr_array<VectorT>();
10752 template <
typename VectorT=Eigen::Matrix<
int32_t, Eigen::Dynamic, 1>>
10756 ctx_Settings_Set_UEregs(
ctx, &value[0], value.size());
10766 return ctx_Settings_Get_UEweight(
ctx);
10771 ctx_Settings_Set_UEweight(
ctx, value);
10778 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
10782 ctx_Settings_Get_VoltageBases_GR(
ctx);
10783 return api_util->get_float64_gr_array<VectorT>();
10785 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
10789 ctx_Settings_Set_VoltageBases(
ctx, &value[0], value.size());
10799 return (ctx_Settings_Get_ZoneLock(
ctx) != 0);
10804 ctx_Settings_Set_ZoneLock(
ctx, value);
10814 ctx_Settings_Set_AllocationFactors(
ctx, value);
10827 return (ctx_Settings_Get_LoadsTerminalCheck(
ctx) != 0);
10832 ctx_Settings_Set_LoadsTerminalCheck(
ctx, value);
10849 return ctx_Settings_Get_IterateDisabled(
ctx);
10854 ctx_Settings_Set_IterateDisabled(
ctx, value);
10876 return ctx_CktElement_Get_Variable(
ctx, MyVarName, &Code);
10878 double Variable(
const string &MyVarName, int32_t &Code)
10880 return Variable(MyVarName.c_str(), Code);
10889 return ctx_CktElement_Get_Variablei(
ctx, Idx, &Code);
10892 int32_t setVariableByIndex(int32_t Idx,
double Value)
10896 ctx_CktElement_Set_Variablei(
ctx, Idx, &Code, Value);
10900 int32_t setVariableByName(
const char *name,
double Value)
10904 ctx_CktElement_Set_Variable(
ctx, name, &Code, Value);
10907 int32_t setVariableByName(
const string &name,
double Value)
10909 return setVariableByName(name.c_str(), Value);
10911 void Close(int32_t Term, int32_t Phs)
10913 APIUtil::ErrorChecker error_checker(
api_util);
10914 ctx_CktElement_Close(
ctx, Term, Phs);
10922 return ctx_CktElement_Get_Controller(
ctx, idx);
10924 bool IsOpen(int32_t Term, int32_t Phs)
10927 return (ctx_CktElement_IsOpen(
ctx, Term, Phs) != 0);
10929 void Open(int32_t Term, int32_t Phs)
10932 ctx_CktElement_Open(
ctx, Term, Phs);
10941 return api_util->get_string_array(ctx_CktElement_Get_AllPropertyNames);
10950 return api_util->get_string_array(ctx_CktElement_Get_AllVariableNames);
10956 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
10960 ctx_CktElement_Get_AllVariableValues_GR(
ctx);
10961 return api_util->get_float64_gr_array<VectorT>();
10970 return api_util->get_string_array(ctx_CktElement_Get_BusNames);
10975 api_util->set_string_array(ctx_CktElement_Set_BusNames, value);
10982 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
10986 ctx_CktElement_Get_CplxSeqCurrents_GR(
ctx);
10987 return api_util->get_float64_gr_array<VectorT>();
10993 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
10997 ctx_CktElement_Get_CplxSeqVoltages_GR(
ctx);
10998 return api_util->get_float64_gr_array<VectorT>();
11004 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
11008 ctx_CktElement_Get_Currents_GR(
ctx);
11009 return api_util->get_float64_gr_array<VectorT>();
11015 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
11019 ctx_CktElement_Get_CurrentsMagAng_GR(
ctx);
11020 return api_util->get_float64_gr_array<VectorT>();
11029 return ctx_CktElement_Get_DisplayName(
ctx);
11034 ctx_CktElement_Set_DisplayName(
ctx, value);
11040 ctx_CktElement_Set_DisplayName(
ctx, value.c_str());
11050 return ctx_CktElement_Get_EmergAmps(
ctx);
11055 ctx_CktElement_Set_EmergAmps(
ctx, value);
11065 return (ctx_CktElement_Get_Enabled(
ctx) != 0);
11070 ctx_CktElement_Set_Enabled(
ctx, value);
11080 return ctx_CktElement_Get_EnergyMeter(
ctx);
11089 return ctx_CktElement_Get_GUID(
ctx);
11098 return ctx_CktElement_Get_Handle(
ctx);
11107 return (ctx_CktElement_Get_HasOCPDevice(
ctx) != 0);
11116 return (ctx_CktElement_Get_HasSwitchControl(
ctx) != 0);
11125 return (ctx_CktElement_Get_HasVoltControl(
ctx) != 0);
11131 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
11135 ctx_CktElement_Get_Losses_GR(
ctx);
11136 return api_util->get_float64_gr_array<VectorT>();
11145 return ctx_CktElement_Get_Name(
ctx);
11151 template <
typename VectorT=Eigen::Matrix<
int32_t, Eigen::Dynamic, 1>>
11155 ctx_CktElement_Get_NodeOrder_GR(
ctx);
11156 return api_util->get_int32_gr_array<VectorT>();
11165 return ctx_CktElement_Get_NormalAmps(
ctx);
11170 ctx_CktElement_Set_NormalAmps(
ctx, value);
11180 return ctx_CktElement_Get_NumConductors(
ctx);
11190 return ctx_CktElement_Get_NumControls(
ctx);
11199 return ctx_CktElement_Get_NumPhases(
ctx);
11208 return ctx_CktElement_Get_NumProperties(
ctx);
11217 return ctx_CktElement_Get_NumTerminals(
ctx);
11226 return ctx_CktElement_Get_OCPDevIndex(
ctx);
11235 return ctx_CktElement_Get_OCPDevType(
ctx);
11241 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
11245 ctx_CktElement_Get_PhaseLosses_GR(
ctx);
11246 return api_util->get_float64_gr_array<VectorT>();
11252 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
11256 ctx_CktElement_Get_Powers_GR(
ctx);
11257 return api_util->get_float64_gr_array<VectorT>();
11263 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
11267 ctx_CktElement_Get_Residuals_GR(
ctx);
11268 return api_util->get_float64_gr_array<VectorT>();
11274 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
11278 ctx_CktElement_Get_SeqCurrents_GR(
ctx);
11279 return api_util->get_float64_gr_array<VectorT>();
11285 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
11289 ctx_CktElement_Get_SeqPowers_GR(
ctx);
11290 return api_util->get_float64_gr_array<VectorT>();
11296 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
11300 ctx_CktElement_Get_SeqVoltages_GR(
ctx);
11301 return api_util->get_float64_gr_array<VectorT>();
11307 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
11311 ctx_CktElement_Get_Voltages_GR(
ctx);
11312 return api_util->get_float64_gr_array<VectorT>();
11318 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
11322 ctx_CktElement_Get_VoltagesMagAng_GR(
ctx);
11323 return api_util->get_float64_gr_array<VectorT>();
11329 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
11333 ctx_CktElement_Get_Yprim_GR(
ctx);
11334 return api_util->get_float64_gr_array<VectorT>();
11344 return (ctx_CktElement_Get_IsIsolated(
ctx) != 0);
11350 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
11354 ctx_CktElement_Get_TotalPowers_GR(
ctx);
11355 return api_util->get_float64_gr_array<VectorT>();
11361 template <
typename VectorT=Eigen::Matrix<
int32_t, Eigen::Dynamic, 1>>
11365 ctx_CktElement_Get_NodeRef_GR(
ctx);
11366 return api_util->get_int32_gr_array<VectorT>();
11385 return api_util->get_string_array(ctx_GICSources_Get_AllNames);
11394 return ctx_GICSources_Get_Count(
ctx);
11403 return ctx_GICSources_Get_First(
ctx);
11412 return ctx_GICSources_Get_Name(
ctx);
11421 ctx_GICSources_Set_Name(
ctx, value);
11426 return Name(value.c_str());
11435 return ctx_GICSources_Get_Next(
ctx);
11444 return ctx_GICSources_Get_idx(
ctx);
11453 ctx_GICSources_Set_idx(
ctx, value);
11462 return ctx_GICSources_Get_Bus1(
ctx);
11471 return ctx_GICSources_Get_Bus2(
ctx);
11480 return ctx_GICSources_Get_Phases(
ctx);
11485 ctx_GICSources_Set_Phases(
ctx, value);
11495 return ctx_GICSources_Get_EN(
ctx);
11500 ctx_GICSources_Set_EN(
ctx, value);
11510 return ctx_GICSources_Get_EE(
ctx);
11515 ctx_GICSources_Set_EE(
ctx, value);
11525 return ctx_GICSources_Get_Lat1(
ctx);
11530 ctx_GICSources_Set_Lat1(
ctx, value);
11540 return ctx_GICSources_Get_Lat2(
ctx);
11545 ctx_GICSources_Set_Lat2(
ctx, value);
11555 return ctx_GICSources_Get_Lon1(
ctx);
11560 ctx_GICSources_Set_Lon1(
ctx, value);
11570 return ctx_GICSources_Get_Lon2(
ctx);
11575 ctx_GICSources_Set_Lon2(
ctx, value);
11585 return ctx_GICSources_Get_Volts(
ctx);
11590 ctx_GICSources_Set_Volts(
ctx, value);
11610 return api_util->get_string_array(ctx_Storages_Get_AllNames);
11619 return ctx_Storages_Get_Count(
ctx);
11628 return ctx_Storages_Get_First(
ctx);
11637 return ctx_Storages_Get_Name(
ctx);
11646 ctx_Storages_Set_Name(
ctx, value);
11651 return Name(value.c_str());
11660 return ctx_Storages_Get_Next(
ctx);
11669 return ctx_Storages_Get_idx(
ctx);
11678 ctx_Storages_Set_idx(
ctx, value);
11687 return ctx_Storages_Get_puSOC(
ctx);
11692 ctx_Storages_Set_puSOC(
ctx, value);
11704 return ctx_Storages_Get_State(
ctx);
11709 ctx_Storages_Set_State(
ctx, value);
11719 return api_util->get_string_array(ctx_Storages_Get_RegisterNames);
11725 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
11729 ctx_Storages_Get_RegisterValues_GR(
ctx);
11730 return api_util->get_float64_gr_array<VectorT>();
11742 void BuildYMatrix(int32_t BuildOption, int32_t AllocateVI)
11745 ctx_Solution_BuildYMatrix(
ctx, BuildOption, AllocateVI);
11747 void CheckControls()
11750 ctx_Solution_CheckControls(
ctx);
11752 void CheckFaultStatus()
11755 ctx_Solution_CheckFaultStatus(
ctx);
11760 ctx_Solution_Cleanup(
ctx);
11762 void DoControlActions()
11765 ctx_Solution_DoControlActions(
ctx);
11767 void FinishTimeStep()
11770 ctx_Solution_FinishTimeStep(
ctx);
11775 ctx_Solution_InitSnap(
ctx);
11777 void SampleControlDevices()
11780 ctx_Solution_SampleControlDevices(
ctx);
11782 void Sample_DoControlActions()
11785 ctx_Solution_Sample_DoControlActions(
ctx);
11790 ctx_Solution_Solve(
ctx);
11795 ctx_Solution_SolveDirect(
ctx);
11797 void SolveNoControl()
11800 ctx_Solution_SolveNoControl(
ctx);
11805 ctx_Solution_SolvePflow(
ctx);
11807 void SolvePlusControl()
11810 ctx_Solution_SolvePlusControl(
ctx);
11815 ctx_Solution_SolveSnap(
ctx);
11824 return ctx_Solution_Get_AddType(
ctx);
11829 ctx_Solution_Set_AddType(
ctx, value);
11839 return ctx_Solution_Get_Algorithm(
ctx);
11844 ctx_Solution_Set_Algorithm(
ctx, value);
11854 return ctx_Solution_Get_Capkvar(
ctx);
11859 ctx_Solution_Set_Capkvar(
ctx, value);
11869 return (ctx_Solution_Get_ControlActionsDone(
ctx) != 0);
11874 ctx_Solution_Set_ControlActionsDone(
ctx, value);
11884 return ctx_Solution_Get_ControlIterations(
ctx);
11889 ctx_Solution_Set_ControlIterations(
ctx, value);
11899 return ctx_Solution_Get_ControlMode(
ctx);
11904 ctx_Solution_Set_ControlMode(
ctx, value);
11914 return (ctx_Solution_Get_Converged(
ctx) != 0);
11919 ctx_Solution_Set_Converged(
ctx, value);
11929 return ctx_Solution_Get_DefaultDaily(
ctx);
11934 ctx_Solution_Set_DefaultDaily(
ctx, value);
11940 ctx_Solution_Set_DefaultDaily(
ctx, value.c_str());
11950 return ctx_Solution_Get_DefaultYearly(
ctx);
11955 ctx_Solution_Set_DefaultYearly(
ctx, value);
11961 ctx_Solution_Set_DefaultYearly(
ctx, value.c_str());
11971 return api_util->get_string_array(ctx_Solution_Get_EventLog);
11980 return ctx_Solution_Get_Frequency(
ctx);
11985 ctx_Solution_Set_Frequency(
ctx, value);
11995 return ctx_Solution_Get_GenMult(
ctx);
12000 ctx_Solution_Set_GenMult(
ctx, value);
12010 return ctx_Solution_Get_GenPF(
ctx);
12015 ctx_Solution_Set_GenPF(
ctx, value);
12025 return ctx_Solution_Get_GenkW(
ctx);
12030 ctx_Solution_Set_GenkW(
ctx, value);
12040 return ctx_Solution_Get_Hour(
ctx);
12045 ctx_Solution_Set_Hour(
ctx, value);
12055 return ctx_Solution_Get_IntervalHrs(
ctx);
12060 ctx_Solution_Set_IntervalHrs(
ctx, value);
12070 return ctx_Solution_Get_Iterations(
ctx);
12079 return ctx_Solution_Get_LDCurve(
ctx);
12084 ctx_Solution_Set_LDCurve(
ctx, value);
12087 ISolution&
LDCurve(
const string &value)
12090 ctx_Solution_Set_LDCurve(
ctx, value.c_str());
12100 return ctx_Solution_Get_LoadModel(
ctx);
12105 ctx_Solution_Set_LoadModel(
ctx, value);
12115 return ctx_Solution_Get_LoadMult(
ctx);
12120 ctx_Solution_Set_LoadMult(
ctx, value);
12130 return ctx_Solution_Get_MaxControlIterations(
ctx);
12135 ctx_Solution_Set_MaxControlIterations(
ctx, value);
12145 return ctx_Solution_Get_MaxIterations(
ctx);
12150 ctx_Solution_Set_MaxIterations(
ctx, value);
12160 return ctx_Solution_Get_MinIterations(
ctx);
12165 ctx_Solution_Set_MinIterations(
ctx, value);
12175 return ctx_Solution_Get_Mode(
ctx);
12180 ctx_Solution_Set_Mode(
ctx, value);
12190 return ctx_Solution_Get_ModeID(
ctx);
12199 return ctx_Solution_Get_MostIterationsDone(
ctx);
12208 return ctx_Solution_Get_Number(
ctx);
12213 ctx_Solution_Set_Number(
ctx, value);
12223 return ctx_Solution_Get_Process_Time(
ctx);
12232 return ctx_Solution_Get_Random(
ctx);
12237 ctx_Solution_Set_Random(
ctx, value);
12247 return ctx_Solution_Get_Seconds(
ctx);
12252 ctx_Solution_Set_Seconds(
ctx, value);
12262 return ctx_Solution_Get_StepSize(
ctx);
12267 ctx_Solution_Set_StepSize(
ctx, value);
12277 return (ctx_Solution_Get_SystemYChanged(
ctx) != 0);
12286 return ctx_Solution_Get_Time_of_Step(
ctx);
12295 return ctx_Solution_Get_Tolerance(
ctx);
12300 ctx_Solution_Set_Tolerance(
ctx, value);
12310 return ctx_Solution_Get_Total_Time(
ctx);
12315 ctx_Solution_Set_Total_Time(
ctx, value);
12325 return ctx_Solution_Get_Totaliterations(
ctx);
12334 return ctx_Solution_Get_Year(
ctx);
12339 ctx_Solution_Set_Year(
ctx, value);
12349 return ctx_Solution_Get_dblHour(
ctx);
12354 ctx_Solution_Set_dblHour(
ctx, value);
12364 return ctx_Solution_Get_pctGrowth(
ctx);
12369 ctx_Solution_Set_pctGrowth(
ctx, value);
12379 ctx_Solution_Set_StepsizeHr(
ctx, value);
12389 ctx_Solution_Set_StepsizeMin(
ctx, value);
12393 template <
typename VectorT=Eigen::Matrix<
int32_t, Eigen::Dynamic, 1>>
12394 VectorT BusLevels()
12397 ctx_Solution_Get_BusLevels_GR(
ctx);
12398 return api_util->get_int32_gr_array<VectorT>();
12401 template <
typename VectorT=Eigen::Matrix<
int32_t, Eigen::Dynamic, 1>>
12402 VectorT IncMatrix()
12405 ctx_Solution_Get_IncMatrix_GR(
ctx);
12406 return api_util->get_int32_gr_array<VectorT>();
12409 strings IncMatrixCols()
12411 APIUtil::ErrorChecker error_checker(
api_util);
12412 return api_util->get_string_array(ctx_Solution_Get_IncMatrixCols);
12415 strings IncMatrixRows()
12417 APIUtil::ErrorChecker error_checker(
api_util);
12418 return api_util->get_string_array(ctx_Solution_Get_IncMatrixRows);
12421 template <
typename VectorT=Eigen::Matrix<
int32_t, Eigen::Dynamic, 1>>
12422 VectorT Laplacian()
12424 APIUtil::ErrorChecker error_checker(
api_util);
12425 ctx_Solution_Get_Laplacian_GR(
ctx);
12426 return api_util->get_int32_gr_array<VectorT>();
12481 ActiveElement(util),
12491 ActiveCktElement(util),
12492 ActiveDSSElement(util),
12497 Transformers(util),
12512 LineGeometries(util),
12513 LineSpacings(util),
12531 if (ctx_Circuit_SetActiveBusi(
ctx, idx) < 0)
12532 throw std::runtime_error(
"Invalid bus");
12543 if (ctx_Circuit_SetActiveBus(
ctx, name) < 0)
12544 throw std::runtime_error(
"Invalid bus");
12559 ctx_Circuit_SetCktElementIndex(
ctx, idx);
12560 return ActiveCktElement;
12569 ctx_Circuit_SetCktElementName(
ctx, fullName);
12570 return ActiveCktElement;
12576 double Capacity(
double Start,
double Increment)
12579 return ctx_Circuit_Capacity(
ctx, Start, Increment);
12581 void Disable(
const char *
Name)
12583 APIUtil::ErrorChecker error_checker(
api_util);
12584 ctx_Circuit_Disable(
ctx,
Name);
12586 void Disable(
const string &
Name)
12588 APIUtil::ErrorChecker error_checker(
api_util);
12589 ctx_Circuit_Disable(
ctx,
Name.c_str());
12591 void Enable(
const char *
Name)
12593 APIUtil::ErrorChecker error_checker(
api_util);
12594 ctx_Circuit_Enable(
ctx,
Name);
12596 void Enable(
const string &
Name)
12598 APIUtil::ErrorChecker error_checker(
api_util);
12599 ctx_Circuit_Enable(
ctx,
Name.c_str());
12601 void EndOfTimeStepUpdate()
12603 APIUtil::ErrorChecker error_checker(
api_util);
12604 ctx_Circuit_EndOfTimeStepUpdate(
ctx);
12606 int32_t FirstElement()
12608 APIUtil::ErrorChecker error_checker(
api_util);
12609 return ctx_Circuit_FirstElement(
ctx);
12611 int32_t FirstPCElement()
12613 APIUtil::ErrorChecker error_checker(
api_util);
12614 return ctx_Circuit_FirstPCElement(
ctx);
12616 int32_t FirstPDElement()
12618 APIUtil::ErrorChecker error_checker(
api_util);
12619 return ctx_Circuit_FirstPDElement(
ctx);
12624 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
12628 ctx_Circuit_Get_AllNodeDistancesByPhase_GR(
ctx, Phase);
12629 return api_util->get_float64_gr_array<VectorT>();
12637 return api_util->get_string_array(ctx_Circuit_Get_AllNodeNamesByPhase, Phase);
12642 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
12646 ctx_Circuit_Get_AllNodeVmagByPhase_GR(
ctx, Phase);
12647 return api_util->get_float64_gr_array<VectorT>();
12652 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
12656 ctx_Circuit_Get_AllNodeVmagPUByPhase_GR(
ctx, Phase);
12657 return api_util->get_float64_gr_array<VectorT>();
12659 int32_t NextElement()
12662 return ctx_Circuit_NextElement(
ctx);
12664 int32_t NextPCElement()
12667 return ctx_Circuit_NextPCElement(
ctx);
12669 int32_t NextPDElement()
12671 APIUtil::ErrorChecker error_checker(
api_util);
12672 return ctx_Circuit_NextPDElement(
ctx);
12676 APIUtil::ErrorChecker error_checker(
api_util);
12677 ctx_Circuit_Sample(
ctx);
12681 APIUtil::ErrorChecker error_checker(
api_util);
12682 ctx_Circuit_SaveSample(
ctx);
12684 int32_t SetActiveBus(
const char *BusName)
12686 APIUtil::ErrorChecker error_checker(
api_util);
12687 return ctx_Circuit_SetActiveBus(
ctx, BusName);
12689 int32_t SetActiveBus(
const string &BusName)
12691 APIUtil::ErrorChecker error_checker(
api_util);
12692 return ctx_Circuit_SetActiveBus(
ctx, BusName.c_str());
12694 int32_t SetActiveBusi(int32_t BusIndex)
12696 APIUtil::ErrorChecker error_checker(
api_util);
12697 return ctx_Circuit_SetActiveBusi(
ctx, BusIndex);
12699 int32_t SetActiveClass(
const char *ClassName)
12701 APIUtil::ErrorChecker error_checker(
api_util);
12702 return ctx_Circuit_SetActiveClass(
ctx, ClassName);
12704 int32_t SetActiveClass(
const string &ClassName)
12706 APIUtil::ErrorChecker error_checker(
api_util);
12707 return ctx_Circuit_SetActiveClass(
ctx, ClassName.c_str());
12709 int32_t SetActiveElement(
const char *FullName)
12711 APIUtil::ErrorChecker error_checker(
api_util);
12712 return ctx_Circuit_SetActiveElement(
ctx, FullName);
12714 int32_t SetActiveElement(
const string &FullName)
12716 APIUtil::ErrorChecker error_checker(
api_util);
12717 return ctx_Circuit_SetActiveElement(
ctx, FullName.c_str());
12719 void UpdateStorage()
12721 APIUtil::ErrorChecker error_checker(
api_util);
12722 ctx_Circuit_UpdateStorage(
ctx);
12728 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
12732 ctx_Circuit_Get_AllBusDistances_GR(
ctx);
12733 return api_util->get_float64_gr_array<VectorT>();
12742 return api_util->get_string_array(ctx_Circuit_Get_AllBusNames);
12748 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
12752 ctx_Circuit_Get_AllBusVmag_GR(
ctx);
12753 return api_util->get_float64_gr_array<VectorT>();
12759 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
12763 ctx_Circuit_Get_AllBusVmagPu_GR(
ctx);
12764 return api_util->get_float64_gr_array<VectorT>();
12770 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
12774 ctx_Circuit_Get_AllBusVolts_GR(
ctx);
12775 return api_util->get_float64_gr_array<VectorT>();
12781 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
12785 ctx_Circuit_Get_AllElementLosses_GR(
ctx);
12786 return api_util->get_float64_gr_array<VectorT>();
12795 return api_util->get_string_array(ctx_Circuit_Get_AllElementNames);
12801 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
12805 ctx_Circuit_Get_AllNodeDistances_GR(
ctx);
12806 return api_util->get_float64_gr_array<VectorT>();
12815 return api_util->get_string_array(ctx_Circuit_Get_AllNodeNames);
12821 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
12825 ctx_Circuit_Get_LineLosses_GR(
ctx);
12826 return api_util->get_float64_gr_array<VectorT>();
12832 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
12836 ctx_Circuit_Get_Losses_GR(
ctx);
12837 return api_util->get_float64_gr_array<VectorT>();
12846 return ctx_Circuit_Get_Name(
ctx);
12855 return ctx_Circuit_Get_NumBuses(
ctx);
12864 return ctx_Circuit_Get_NumCktElements(
ctx);
12873 return ctx_Circuit_Get_NumNodes(
ctx);
12882 return ctx_Circuit_Get_ParentPDElement(
ctx);
12888 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
12892 ctx_Circuit_Get_SubstationLosses_GR(
ctx);
12893 return api_util->get_float64_gr_array<VectorT>();
12901 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
12905 ctx_Circuit_Get_SystemY_GR(
ctx);
12906 return api_util->get_float64_gr_array<VectorT>();
12912 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
12916 ctx_Circuit_Get_TotalPower_GR(
ctx);
12917 return api_util->get_float64_gr_array<VectorT>();
12923 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
12927 ctx_Circuit_Get_YCurrents_GR(
ctx);
12928 return api_util->get_float64_gr_array<VectorT>();
12937 return api_util->get_string_array(ctx_Circuit_Get_YNodeOrder);
12943 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>>
12947 ctx_Circuit_Get_YNodeVarray_GR(
ctx);
12948 return api_util->get_float64_gr_array<VectorT>();
12956 template <
typename VectorT=Eigen::Matrix<
double, Eigen::Dynamic, 1>,
typename InVectorT=Eigen::Matrix<
int32_t, Eigen::Dynamic, 1>>
12960 ctx_Circuit_Get_ElementLosses_GR(
ctx, &value[0], value.size());
12961 return api_util->get_float64_gr_array<VectorT>();
12983 ActiveCircuit(util),
13015 return new IDSS(new_api_util,
true);
13028 APIUtil::ErrorChecker error_checker(
api_util);
13029 ctx_DSS_ClearAll(
ctx);
13033 APIUtil::ErrorChecker error_checker(
api_util);
13034 ctx_DSS_Reset(
ctx);
13036 int32_t SetActiveClass(
const char *ClassName)
13038 APIUtil::ErrorChecker error_checker(
api_util);
13039 return ctx_DSS_SetActiveClass(
ctx, ClassName);
13041 int32_t SetActiveClass(
const string &ClassName)
13043 APIUtil::ErrorChecker error_checker(
api_util);
13044 return ctx_DSS_SetActiveClass(
ctx, ClassName.c_str());
13046 bool Start(int32_t code)
13048 APIUtil::ErrorChecker error_checker(
api_util);
13049 return (ctx_DSS_Start(
ctx, code) != 0);
13058 return api_util->get_string_array(ctx_DSS_Get_Classes);
13067 return ctx_DSS_Get_DataPath(
ctx);
13072 ctx_DSS_Set_DataPath(
ctx, value);
13078 ctx_DSS_Set_DataPath(
ctx, value.c_str());
13088 return ctx_DSS_Get_DefaultEditor(
ctx);
13097 return ctx_DSS_Get_NumCircuits(
ctx);
13106 return ctx_DSS_Get_NumClasses(
ctx);
13115 return ctx_DSS_Get_NumUserClasses(
ctx);
13124 return api_util->get_string_array(ctx_DSS_Get_UserClasses);
13133 return ctx_DSS_Get_Version(
ctx);
13142 return (ctx_DSS_Get_AllowForms(
ctx) != 0);
13147 ctx_DSS_Set_AllowForms(
ctx, value);
13163 return (ctx_DSS_Get_AllowEditor(
ctx) != 0);
13168 ctx_DSS_Set_AllowEditor(
ctx, value);
13176 ICircuit& NewCircuit(
const char *name)
13178 APIUtil::ErrorChecker error_checker(
api_util);
13179 ctx_DSS_NewCircuit(
ctx, name);
13180 return ActiveCircuit;
13182 ICircuit& NewCircuit(
const string &name)
13184 APIUtil::ErrorChecker error_checker(
api_util);
13185 ctx_DSS_NewCircuit(
ctx, name.c_str());
13186 return ActiveCircuit;
13207 return (ctx_DSS_Get_LegacyModels(
ctx) != 0);
13212 ctx_DSS_Set_LegacyModels(
ctx, value);
13233 return (ctx_DSS_Get_AllowChangeDir(
ctx) != 0);
13238 ctx_DSS_Set_AllowChangeDir(
ctx, value);
13255 return (ctx_DSS_Get_AllowDOScmd(
ctx) != 0);
13260 ctx_DSS_Set_AllowDOScmd(
ctx, value);
13283 return (ctx_DSS_Get_COMErrorResults(
ctx) != 0);
13288 ctx_DSS_Set_COMErrorResults(
ctx, value);
Wraps common DSSContext state data.
Definition: dss_common.hpp:256
void * ctx
Pointer to the DSSContext for easy access.
Definition: dss_common.hpp:261
APIUtil * api_util
API utility functions.
Definition: dss_common.hpp:266
Definition: dss_classic.hpp:7590
int32_t NumElements()
Number of elements in this class.
Definition: dss_classic.hpp:7667
int32_t Next()
Sets next element in active class to be the active DSS object.
Definition: dss_classic.hpp:7658
string ActiveClassParent()
Get the name of the parent class of the active class.
Definition: dss_classic.hpp:7676
string ActiveClassName()
Returns name of active class.
Definition: dss_classic.hpp:7601
strings AllNames()
Array of strings consisting of all element names in the active class.
Definition: dss_classic.hpp:7610
string Name()
Name of the Active Element of the Active Class.
Definition: dss_classic.hpp:7637
int32_t Count()
Number of elements in Active Class.
Definition: dss_classic.hpp:7619
int32_t First()
Sets first element in the active class to be the active DSS object.
Definition: dss_classic.hpp:7628
string ToJSON(int32_t options=0)
Returns the data (as a list) of all elements from the active class as a JSON-encoded string.
Definition: dss_classic.hpp:7691
Definition: dss_classic.hpp:7699
int32_t N_Customers()
Total numbers of customers served downline from this bus.
Definition: dss_classic.hpp:7832
string Name()
Name of Bus.
Definition: dss_classic.hpp:7850
double Cust_Duration()
Accumulated customer outage durations.
Definition: dss_classic.hpp:7776
VectorT SeqVoltages()
Double Array of sequence voltages at this bus.
Definition: dss_classic.hpp:7889
VectorT puVmagAngle()
Array of doubles containig voltage magnitude, angle pairs in per unit.
Definition: dss_classic.hpp:8017
double Cust_Interrupts()
Annual number of customer-interruptions from this bus.
Definition: dss_classic.hpp:7785
double TotalMiles()
Total length of line downline from this bus, in miles.
Definition: dss_classic.hpp:7899
strings AllPDEatBus()
Returns an array with the names of all PDE connected to the active bus.
Definition: dss_classic.hpp:7737
int32_t SectionID()
Integer ID of the feeder section in which this bus is located.
Definition: dss_classic.hpp:7879
VectorT puVoltages()
Complex Array of pu voltages at the bus.
Definition: dss_classic.hpp:8028
VectorT Voltages()
Complex array of voltages at this bus.
Definition: dss_classic.hpp:7942
VectorT Nodes()
Integer Array of Node Numbers defined at the bus in same order as the voltages.
Definition: dss_classic.hpp:7860
strings AllPCEatBus()
Returns an array with the names of all PCE connected to the active bus.
Definition: dss_classic.hpp:7728
double Distance()
Distance from energymeter (if non-zero)
Definition: dss_classic.hpp:7794
VectorT ZSC012Matrix()
Array of doubles (complex) containing the complete 012 Zsc matrix.
Definition: dss_classic.hpp:8039
VectorT Zsc1()
Complex Positive-Sequence short circuit impedance at bus.
Definition: dss_classic.hpp:7975
double Int_Duration()
Average interruption duration, hr.
Definition: dss_classic.hpp:7803
VectorT VMagAngle()
Array of doubles containing voltages in Magnitude (VLN), angle (deg)
Definition: dss_classic.hpp:7920
double x()
X Coordinate for bus (double)
Definition: dss_classic.hpp:8049
VectorT VLL()
For 2- and 3-phase buses, returns array of complex numbers represetin L-L voltages in volts.
Definition: dss_classic.hpp:7909
VectorT YscMatrix()
Complex array of Ysc matrix at bus.
Definition: dss_classic.hpp:7953
double N_interrupts()
Number of interruptions this bus per year.
Definition: dss_classic.hpp:7841
VectorT Isc()
Short circuit currents at bus; Complex Array.
Definition: dss_classic.hpp:7813
VectorT puVLL()
Returns Complex array of pu L-L voltages for 2- and 3-phase buses.
Definition: dss_classic.hpp:8006
VectorT Zsc0()
Complex Zero-Sequence short circuit impedance at bus.
Definition: dss_classic.hpp:7964
double kVBase()
Base voltage at bus in kV.
Definition: dss_classic.hpp:7996
strings LineList()
List of strings: Full Names of LINE elements connected to the active bus.
Definition: dss_classic.hpp:8088
VectorT CplxSeqVoltages()
Complex Double array of Sequence Voltages (0, 1, 2) at this Bus.
Definition: dss_classic.hpp:7766
strings LoadList()
List of strings: Full Names of LOAD elements connected to the active bus.
Definition: dss_classic.hpp:8079
bool Coorddefined()
False=0 else True.
Definition: dss_classic.hpp:7756
VectorT ZscMatrix()
Complex array of Zsc matrix at bus.
Definition: dss_classic.hpp:7986
double y()
Y coordinate for bus(double)
Definition: dss_classic.hpp:8064
VectorT Voc()
Open circuit voltage; Complex array.
Definition: dss_classic.hpp:7931
int32_t NumNodes()
Number of Nodes this bus.
Definition: dss_classic.hpp:7870
double Lambda()
Accumulated failure rate downstream from this bus; faults per year.
Definition: dss_classic.hpp:7823
Definition: dss_classic.hpp:8097
strings AllNames()
Array of strings with all CNData names in the circuit.
Definition: dss_classic.hpp:8108
int32_t idx()
Get active CNData by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:8167
int32_t Next()
Sets the next CNData active.
Definition: dss_classic.hpp:8158
int32_t Count()
Number of CNData objects in active circuit.
Definition: dss_classic.hpp:8117
double EmergAmps()
Emergency ampere rating.
Definition: dss_classic.hpp:8185
void idx(int32_t value)
Get active CNData by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:8176
double NormAmps()
Normal Ampere rating.
Definition: dss_classic.hpp:8200
string Name()
Get the name of the current active CNData.
Definition: dss_classic.hpp:8135
int32_t First()
Sets the first CNData active.
Definition: dss_classic.hpp:8126
ICNData & Name(const char *value)
Sets the active CNData by Name.
Definition: dss_classic.hpp:8144
Definition: dss_classic.hpp:8406
ICapControls & Name(const char *value)
Sets the active CapControl by Name.
Definition: dss_classic.hpp:8453
int32_t idx()
Get active CapControl by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:8476
double DelayOff()
Time delay [s] before swithcing off a step.
Definition: dss_classic.hpp:8562
int32_t Count()
Number of CapControl objects in active circuit.
Definition: dss_classic.hpp:8426
string Capacitor()
Name of the Capacitor that is controlled.
Definition: dss_classic.hpp:8514
double Vmax()
With VoltOverride, swtich off whenever PT voltage exceeds this level.
Definition: dss_classic.hpp:8688
int32_t Mode()
Type of automatic controller.
Definition: dss_classic.hpp:8577
string Name()
Get the name of the current active CapControl.
Definition: dss_classic.hpp:8444
double PTratio()
Transducer ratio from primary feeder to control voltage.
Definition: dss_classic.hpp:8658
double ONSetting()
Threshold to arm or switch on a step.
Definition: dss_classic.hpp:8643
int32_t MonitoredTerm()
Terminal number on the element that PT and CT are connected to.
Definition: dss_classic.hpp:8613
double CTratio()
Transducer ratio from pirmary current to control current.
Definition: dss_classic.hpp:8499
double Vmin()
With VoltOverride, switch ON whenever PT voltage drops below this level.
Definition: dss_classic.hpp:8703
int32_t Next()
Sets the next CapControl active.
Definition: dss_classic.hpp:8467
strings AllNames()
Array of strings with all CapControl names in the circuit.
Definition: dss_classic.hpp:8417
int32_t First()
Sets the first CapControl active.
Definition: dss_classic.hpp:8435
double OFFSetting()
Threshold to switch off a step.
Definition: dss_classic.hpp:8628
string MonitoredObj()
Full name of the element that PT and CT are connected to.
Definition: dss_classic.hpp:8592
bool UseVoltOverride()
Enables Vmin and Vmax to override the control Mode.
Definition: dss_classic.hpp:8673
double Delay()
Time delay [s] to switch on after arming.
Definition: dss_classic.hpp:8547
void idx(int32_t value)
Get active CapControl by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:8485
Definition: dss_classic.hpp:8717
int32_t Count()
Number of Capacitor objects in active circuit.
Definition: dss_classic.hpp:8737
int32_t AvailableSteps()
Number of Steps available in cap bank to be switched ON.
Definition: dss_classic.hpp:8825
bool IsDelta()
Delta connection or wye?
Definition: dss_classic.hpp:8834
ICapacitors & Name(const char *value)
Sets the active Capacitor by Name.
Definition: dss_classic.hpp:8764
void idx(int32_t value)
Get active Capacitor by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:8796
strings AllNames()
Array of strings with all Capacitor names in the circuit.
Definition: dss_classic.hpp:8728
int32_t Next()
Sets the next Capacitor active.
Definition: dss_classic.hpp:8778
double kvar()
Total bank KVAR, distributed equally among phases and steps.
Definition: dss_classic.hpp:8897
double kV()
Bank kV rating.
Definition: dss_classic.hpp:8882
VectorT States()
A array of integer [0..numsteps-1] indicating state of each step.
Definition: dss_classic.hpp:8865
int32_t NumSteps()
Number of steps (default 1) for distributing and switching the total bank kVAR.
Definition: dss_classic.hpp:8849
int32_t idx()
Get active Capacitor by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:8787
string Name()
Get the name of the current active Capacitor.
Definition: dss_classic.hpp:8755
int32_t First()
Sets the first Capacitor active.
Definition: dss_classic.hpp:8746
Definition: dss_classic.hpp:12431
VectorT AllNodeDistances()
Returns an array of distances from parent EnergyMeter for each Node.
Definition: dss_classic.hpp:12802
VectorT AllBusVmag()
Array of magnitudes (doubles) of voltages at all buses.
Definition: dss_classic.hpp:12749
VectorT AllElementLosses()
Array of total losses (complex) in each circuit element.
Definition: dss_classic.hpp:12782
ICktElement get_CktElements(int32_t idx)
Activates and returns a CktElement by its global (zero-based) index.
Definition: dss_classic.hpp:12556
VectorT TotalPower()
Total power, kW delivered to the circuit.
Definition: dss_classic.hpp:12913
strings AllNodeNames()
Array of strings containing full name of each node in system in same order as returned by AllBusVolts...
Definition: dss_classic.hpp:12812
VectorT AllNodeDistancesByPhase(int32_t Phase)
Returns an array of doubles representing the distances to parent EnergyMeter.
Definition: dss_classic.hpp:12625
VectorT SubstationLosses()
Complex losses in all transformers designated to substations.
Definition: dss_classic.hpp:12889
string Name()
Name of the active circuit.
Definition: dss_classic.hpp:12843
strings AllNodeNamesByPhase(int32_t Phase)
Return array of strings of the node names for the By Phase criteria.
Definition: dss_classic.hpp:12634
strings YNodeOrder()
Array of strings containing the names of the nodes in the same order as the Y matrix.
Definition: dss_classic.hpp:12934
ICktElement get_CktElements(const char *fullName)
Activates and returns a CktElement by its full name (e.g.
Definition: dss_classic.hpp:12566
int32_t ParentPDElement()
Sets Parent PD element, if any, to be the active circuit element and returns index>0; Returns 0 if it...
Definition: dss_classic.hpp:12879
int32_t NumBuses()
Total number of Buses in the circuit.
Definition: dss_classic.hpp:12852
strings AllBusNames()
Array of strings containing names of all buses in circuit (see AllNodeNames).
Definition: dss_classic.hpp:12739
VectorT AllBusVolts()
Complex array of all bus, node voltages from most recent solution.
Definition: dss_classic.hpp:12771
VectorT LineLosses()
Complex total line losses in the circuit.
Definition: dss_classic.hpp:12822
IBus & get_Buses(int32_t idx)
Activates and returns a bus by its (zero-based) index.
Definition: dss_classic.hpp:12528
strings AllElementNames()
Array of strings containing Full Name of all elements.
Definition: dss_classic.hpp:12792
VectorT AllBusDistances()
Returns distance from each bus to parent EnergyMeter.
Definition: dss_classic.hpp:12729
VectorT AllBusVmagPu()
Double Array of all bus voltages (each node) magnitudes in Per unit.
Definition: dss_classic.hpp:12760
VectorT AllNodeVmagByPhase(int32_t Phase)
Returns Array of doubles represent voltage magnitudes for nodes on the specified phase.
Definition: dss_classic.hpp:12643
VectorT ElementLosses(const InVectorT &value)
Array of total losses (complex) in a selection of elements.
Definition: dss_classic.hpp:12957
VectorT AllNodeVmagPUByPhase(int32_t Phase)
Returns array of per unit voltage magnitudes for each node by phase.
Definition: dss_classic.hpp:12653
VectorT SystemY()
System Y matrix (after a solution has been performed).
Definition: dss_classic.hpp:12902
VectorT YNodeVarray()
Complex array of actual node voltages in same order as SystemY matrix.
Definition: dss_classic.hpp:12944
int32_t NumNodes()
Total number of nodes in the circuit.
Definition: dss_classic.hpp:12870
VectorT YCurrents()
Array of doubles containing complex injection currents for the present solution.
Definition: dss_classic.hpp:12924
VectorT Losses()
Total losses in active circuit, complex number (two-element array of double).
Definition: dss_classic.hpp:12833
IBus & get_Buses(const char *name)
Activates and returns a bus by its name.
Definition: dss_classic.hpp:12540
int32_t NumCktElements()
Number of CktElements in the circuit.
Definition: dss_classic.hpp:12861
Definition: dss_classic.hpp:10860
VectorT AllVariableValues()
Array of doubles.
Definition: dss_classic.hpp:10957
VectorT PhaseLosses()
Complex array of losses by phase.
Definition: dss_classic.hpp:11242
int32_t NumControls()
Number of controls connected to this device.
Definition: dss_classic.hpp:11187
VectorT SeqPowers()
Double array of sequence powers into each 3-phase teminal.
Definition: dss_classic.hpp:11286
bool IsIsolated()
Returns true if the current active element is isolated.
Definition: dss_classic.hpp:11341
VectorT Powers()
Complex array of powers into each conductor of each terminal.
Definition: dss_classic.hpp:11253
string Name()
Full Name of Active Circuit Element.
Definition: dss_classic.hpp:11142
VectorT VoltagesMagAng()
Voltages at each conductor in magnitude, angle form as array of doubles.
Definition: dss_classic.hpp:11319
strings AllPropertyNames()
Array containing all property names of the active device.
Definition: dss_classic.hpp:10938
strings BusNames()
Array of strings.
Definition: dss_classic.hpp:10967
int32_t OCPDevIndex()
Index into Controller list of OCP Device controlling this CktElement.
Definition: dss_classic.hpp:11223
VectorT CplxSeqVoltages()
Complex double array of Sequence Voltage for all terminals of active circuit element.
Definition: dss_classic.hpp:10994
VectorT Currents()
Complex array of currents into each conductor of each terminal.
Definition: dss_classic.hpp:11005
VectorT Voltages()
Complex array of voltages at terminals.
Definition: dss_classic.hpp:11308
string DisplayName()
Display name of the object (not necessarily unique)
Definition: dss_classic.hpp:11026
int32_t Handle()
Pointer to this object.
Definition: dss_classic.hpp:11095
int32_t NumTerminals()
Number of Terminals this Circuit Element.
Definition: dss_classic.hpp:11214
strings AllVariableNames()
Array of strings listing all the published variable names, if a PCElement.
Definition: dss_classic.hpp:10947
VectorT TotalPowers()
Returns the total powers (complex) at ALL terminals of the active circuit element.
Definition: dss_classic.hpp:11351
double EmergAmps()
Emergency Ampere Rating for PD elements.
Definition: dss_classic.hpp:11047
int32_t OCPDevType()
0=None; 1=Fuse; 2=Recloser; 3=Relay; Type of OCP controller device
Definition: dss_classic.hpp:11232
VectorT Yprim()
YPrim matrix, column order, complex numbers (paired)
Definition: dss_classic.hpp:11330
VectorT CurrentsMagAng()
Currents in magnitude, angle format as a array of doubles.
Definition: dss_classic.hpp:11016
VectorT Residuals()
Residual currents for each terminal: (mag, angle)
Definition: dss_classic.hpp:11264
int32_t NumConductors()
Number of Conductors per Terminal.
Definition: dss_classic.hpp:11177
VectorT Losses()
Total losses in the element: two-element complex array.
Definition: dss_classic.hpp:11132
double Variablei(int32_t Idx, int32_t &Code)
Value as return and error code in Code parameter.
Definition: dss_classic.hpp:10886
string Controller(int32_t idx)
Full name of the i-th controller attached to this element.
Definition: dss_classic.hpp:10919
VectorT SeqCurrents()
Double array of symmetrical component currents into each 3-phase terminal.
Definition: dss_classic.hpp:11275
double NormalAmps()
Normal ampere rating for PD Elements.
Definition: dss_classic.hpp:11162
bool Enabled()
Boolean indicating that element is currently in the circuit.
Definition: dss_classic.hpp:11062
bool HasOCPDevice()
True if a recloser, relay, or fuse controlling this ckt element.
Definition: dss_classic.hpp:11104
string EnergyMeter()
Name of the Energy Meter this element is assigned to.
Definition: dss_classic.hpp:11077
string GUID()
globally unique identifier for this object
Definition: dss_classic.hpp:11086
VectorT NodeOrder()
Array of integer containing the node numbers (representing phases, for example) for each conductor of...
Definition: dss_classic.hpp:11152
VectorT SeqVoltages()
Double array of symmetrical component voltages at each 3-phase terminal.
Definition: dss_classic.hpp:11297
int32_t NumProperties()
Number of Properties this Circuit Element.
Definition: dss_classic.hpp:11205
VectorT CplxSeqCurrents()
Complex double array of Sequence Currents for all conductors of all terminals of active circuit eleme...
Definition: dss_classic.hpp:10983
VectorT NodeRef()
Array of integers, a copy of the internal NodeRef of the CktElement.
Definition: dss_classic.hpp:11362
int32_t NumPhases()
Number of Phases.
Definition: dss_classic.hpp:11196
bool HasVoltControl()
This element has a CapControl or RegControl attached.
Definition: dss_classic.hpp:11122
bool HasSwitchControl()
This element has a SwtControl attached.
Definition: dss_classic.hpp:11113
double Variable(const char *MyVarName, int32_t &Code)
Value as return and error code in Code parameter.
Definition: dss_classic.hpp:10873
Definition: dss_classic.hpp:8911
int32_t NumActions()
Number of Actions on the current actionlist (that have been popped off the control queue by CheckCont...
Definition: dss_classic.hpp:8965
int32_t Push(int32_t Hour, double Seconds, int32_t ActionCode, int32_t DeviceHandle)
Push a control action onto the DSS control queue by time, action code, and device handle (user define...
Definition: dss_classic.hpp:8973
int32_t DeviceHandle()
Handle (User defined) to device that must act on the pending action.
Definition: dss_classic.hpp:8956
int32_t QueueSize()
Number of items on the OpenDSS control Queue.
Definition: dss_classic.hpp:9000
int32_t ActionCode()
Code for the active action.
Definition: dss_classic.hpp:8947
ICtrlQueue & Action(int32_t value)
(write-only) Set the active action by index
Definition: dss_classic.hpp:9009
strings Queue()
Array of strings containing the entire queue in CSV format.
Definition: dss_classic.hpp:8991
int32_t PopAction()
Pops next action off the action list and makes it the active action.
Definition: dss_classic.hpp:8982
Definition: dss_classic.hpp:9018
strings AllPropertyNames()
Array of strings containing the names of all properties for the active DSS object.
Definition: dss_classic.hpp:9031
int32_t NumProperties()
Number of Properties for the active DSS object.
Definition: dss_classic.hpp:9049
string Name()
Full Name of Active DSS Object (general element or circuit element).
Definition: dss_classic.hpp:9040
string ToJSON(int32_t options=0)
Returns the properties of the active DSS object as a JSON-encoded string.
Definition: dss_classic.hpp:9062
Definition: dss_classic.hpp:29
IDSSProgress & Caption(const char *value)
(write-only) Caption to appear on the bottom of the DSS Progress form.
Definition: dss_classic.hpp:50
IDSSProgress & PctProgress(int32_t value)
(write-only) Percent progress to indicate [0..100]
Definition: dss_classic.hpp:66
Definition: dss_classic.hpp:75
string Description()
Description of the property.
Definition: dss_classic.hpp:104
string Name()
Name of Property.
Definition: dss_classic.hpp:113
Definition: dss_classic.hpp:139
string CommandHelp(int32_t i)
Get help string for i-th command.
Definition: dss_classic.hpp:157
string Command(int32_t i)
Get i-th command.
Definition: dss_classic.hpp:149
string OptionHelp(int32_t i)
Get help string for i-th option.
Definition: dss_classic.hpp:173
string OptionValue(int32_t i)
Get present value of i-th option.
Definition: dss_classic.hpp:181
int32_t NumOptions()
Number of DSS Executive Options.
Definition: dss_classic.hpp:199
int32_t NumCommands()
Number of DSS Executive Commands.
Definition: dss_classic.hpp:190
string Option(int32_t i)
Get i-th option.
Definition: dss_classic.hpp:165
Definition: dss_classic.hpp:12966
string DefaultEditor()
Returns the path name for the default text editor.
Definition: dss_classic.hpp:13085
bool AllowDOScmd()
If enabled, the DOScmd command is allowed.
Definition: dss_classic.hpp:13252
string Version()
Get version string for the DSS.
Definition: dss_classic.hpp:13130
bool AllowEditor()
Gets/sets whether running the external editor for "Show" is allowed.
Definition: dss_classic.hpp:13160
strings UserClasses()
List of user-defined classes.
Definition: dss_classic.hpp:13121
bool COMErrorResults()
If enabled, in case of errors or empty arrays, the API returns arrays with values compatible with the...
Definition: dss_classic.hpp:13280
strings Classes()
List of DSS intrinsic classes (names of the classes)
Definition: dss_classic.hpp:13055
IDSS()
Expose DSS without a constructor parameters for backwards compatibility.
Definition: dss_classic.hpp:13002
static IDSS * NewContext()
Creates a new DSS engine context.
Definition: dss_classic.hpp:13012
int32_t NumUserClasses()
Number of user-defined classes.
Definition: dss_classic.hpp:13112
bool LegacyModels()
If enabled, the legacy/deprecated models for PVSystem, InvControl, Storage and StorageControl are use...
Definition: dss_classic.hpp:13204
bool AllowForms()
Gets/sets whether text output is allowed.
Definition: dss_classic.hpp:13139
bool AllowChangeDir()
If disabled, the engine will not change the active working directory during execution.
Definition: dss_classic.hpp:13230
string DataPath()
DSS Data File Path.
Definition: dss_classic.hpp:13064
int32_t NumCircuits()
Number of Circuits currently defined.
Definition: dss_classic.hpp:13094
int32_t NumClasses()
Number of DSS intrinsic classes.
Definition: dss_classic.hpp:13103
Definition: dss_classic.hpp:207
Definition: dss_classic.hpp:231
int32_t Number()
Error Number (returns current value and then resets to zero)
Definition: dss_classic.hpp:251
bool EarlyAbort()
EarlyAbort controls whether all errors halts the DSS script processing (Compile/Redirect),...
Definition: dss_classic.hpp:262
bool ExtendedErrors()
Controls whether the extended error mechanism is used.
Definition: dss_classic.hpp:296
string Description()
Description of error for last operation.
Definition: dss_classic.hpp:242
Definition: dss_classic.hpp:310
double Delay()
A fixed delay time in seconds added to the fuse blowing time determined by the TCC curve.
Definition: dss_classic.hpp:431
strings State()
Array of strings indicating the state of each phase of the fuse.
Definition: dss_classic.hpp:565
strings NormalState()
Array of strings indicating the normal state of each phase of the fuse.
Definition: dss_classic.hpp:580
int32_t idx()
Get active Fuse by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:380
double RatedCurrent()
Multiplier or actual amps for the TCCcurve object.
Definition: dss_classic.hpp:492
int32_t First()
Sets the first Fuse active.
Definition: dss_classic.hpp:339
bool IsBlown()
Current state of the fuses.
Definition: dss_classic.hpp:405
void Close()
Close all phases of the fuse.
Definition: dss_classic.hpp:397
int32_t Next()
Sets the next Fuse active.
Definition: dss_classic.hpp:371
int32_t SwitchedTerm()
Number of the terminal of the controlled element containing the switch controlled by the fuse.
Definition: dss_classic.hpp:529
void Open()
Manual opening of all phases of the fuse.
Definition: dss_classic.hpp:413
void Reset()
Reset fuse to normal state.
Definition: dss_classic.hpp:421
string TCCcurve()
Name of the TCCcurve object that determines fuse blowing.
Definition: dss_classic.hpp:544
int32_t Count()
Number of Fuse objects in active circuit.
Definition: dss_classic.hpp:330
int32_t NumPhases()
Number of phases, this fuse.
Definition: dss_classic.hpp:482
int32_t MonitoredTerm()
Terminal number to which the fuse is connected.
Definition: dss_classic.hpp:467
string Name()
Get the name of the current active Fuse.
Definition: dss_classic.hpp:348
string SwitchedObj()
Full name of the circuit element switch that the fuse controls.
Definition: dss_classic.hpp:508
strings AllNames()
Array of strings with all Fuse names in the circuit.
Definition: dss_classic.hpp:321
void idx(int32_t value)
Get active Fuse by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:389
string MonitoredObj()
Full name of the circuit element to which the fuse is connected.
Definition: dss_classic.hpp:446
IFuses & Name(const char *value)
Sets the active Fuse by Name.
Definition: dss_classic.hpp:357
Definition: dss_classic.hpp:11371
int32_t Count()
Number of GICSource objects in active circuit.
Definition: dss_classic.hpp:11391
void idx(int32_t value)
Get active GICSource by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:11450
double Lat2()
Latitude of Bus2 (degrees)
Definition: dss_classic.hpp:11537
IGICSources & Name(const char *value)
Sets the active GICSource by Name.
Definition: dss_classic.hpp:11418
int32_t Next()
Sets the next GICSource active.
Definition: dss_classic.hpp:11432
int32_t Phases()
Number of Phases, this GICSource element.
Definition: dss_classic.hpp:11477
strings AllNames()
Array of strings with all GICSource names in the circuit.
Definition: dss_classic.hpp:11382
double Lon2()
Longitude of Bus2 (Degrees)
Definition: dss_classic.hpp:11567
double Volts()
Specify dc voltage directly.
Definition: dss_classic.hpp:11582
double Lon1()
Longitude of Bus1 (Degrees)
Definition: dss_classic.hpp:11552
double EN()
Northward E Field V/km.
Definition: dss_classic.hpp:11492
string Bus1()
First bus name of GICSource (Created name)
Definition: dss_classic.hpp:11459
string Name()
Get the name of the current active GICSource.
Definition: dss_classic.hpp:11409
double EE()
Eastward E Field, V/km.
Definition: dss_classic.hpp:11507
int32_t First()
Sets the first GICSource active.
Definition: dss_classic.hpp:11400
int32_t idx()
Get active GICSource by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:11441
double Lat1()
Latitude of Bus1 (degrees)
Definition: dss_classic.hpp:11522
string Bus2()
Second bus name.
Definition: dss_classic.hpp:11468
Definition: dss_classic.hpp:594
int32_t Phases()
Number of phases.
Definition: dss_classic.hpp:727
bool IsDelta()
Generator connection.
Definition: dss_classic.hpp:942
double kW()
kW output for the active generator.
Definition: dss_classic.hpp:822
string Bus1()
Bus to which the Generator is connected.
Definition: dss_classic.hpp:993
double PF()
Power factor (pos.
Definition: dss_classic.hpp:712
double Vmaxpu()
Vmaxpu for generator model.
Definition: dss_classic.hpp:762
int32_t idx()
Get active Generator by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:664
VectorT RegisterValues()
Array of valus in generator energy meter registers.
Definition: dss_classic.hpp:752
int32_t Count()
Number of Generator objects in active circuit.
Definition: dss_classic.hpp:614
strings AllNames()
Array of strings with all Generator names in the circuit.
Definition: dss_classic.hpp:605
double kvar()
kvar output for the active generator.
Definition: dss_classic.hpp:837
IGenerators & Name(const char *value)
Sets the active Generator by Name.
Definition: dss_classic.hpp:641
string duty()
Name of the loadshape for a duty cycle simulation.
Definition: dss_classic.hpp:877
int32_t Next()
Sets the next Generator active.
Definition: dss_classic.hpp:655
string daily()
Name of the loadshape for a daily generation profile.
Definition: dss_classic.hpp:854
int32_t First()
Sets the first Generator active.
Definition: dss_classic.hpp:623
bool ForcedON()
Indicates whether the generator is forced ON regardles of other dispatch criteria.
Definition: dss_classic.hpp:682
double kV()
Voltage base for the active generator, kV.
Definition: dss_classic.hpp:792
void idx(int32_t value)
Get active Generator by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:673
strings RegisterNames()
Array of Names of all generator energy meter registers.
Definition: dss_classic.hpp:742
int32_t Model()
Generator Model.
Definition: dss_classic.hpp:697
string Name()
Get the name of the current active Generator.
Definition: dss_classic.hpp:632
double kva()
kVA rating of electrical machine.
Definition: dss_classic.hpp:959
int32_t Status()
Response to dispatch multipliers: Fixed=1 (dispatch multipliers do not apply), Variable=0 (follows cu...
Definition: dss_classic.hpp:925
double Vminpu()
Vminpu for Generator model.
Definition: dss_classic.hpp:777
string Yearly()
Name of yearly loadshape.
Definition: dss_classic.hpp:900
int32_t Class()
An arbitrary integer number representing the class of Generator so that Generator values may be segre...
Definition: dss_classic.hpp:976
double kVArated()
kVA rating of the generator
Definition: dss_classic.hpp:807
Definition: dss_classic.hpp:1013
double Amps()
Magnitude of the ISource in amps.
Definition: dss_classic.hpp:1101
strings AllNames()
Array of strings with all ISource names in the circuit.
Definition: dss_classic.hpp:1024
double Frequency()
The present frequency of the ISource, Hz.
Definition: dss_classic.hpp:1131
double AngleDeg()
Phase angle for ISource, degrees.
Definition: dss_classic.hpp:1116
int32_t Count()
Number of ISource objects in active circuit.
Definition: dss_classic.hpp:1033
int32_t First()
Sets the first ISource active.
Definition: dss_classic.hpp:1042
void idx(int32_t value)
Get active ISource by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:1092
int32_t Next()
Sets the next ISource active.
Definition: dss_classic.hpp:1074
int32_t idx()
Get active ISource by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:1083
string Name()
Get the name of the current active ISource.
Definition: dss_classic.hpp:1051
IISources & Name(const char *value)
Sets the active ISource by Name.
Definition: dss_classic.hpp:1060
Definition: dss_classic.hpp:1145
bool IsZ1Z0()
Flag denoting whether impedance data were entered in symmetrical components.
Definition: dss_classic.hpp:1296
double NormAmps()
Normal Ampere rating.
Definition: dss_classic.hpp:1305
double R1()
Positive-sequence resistance ohms per unit length.
Definition: dss_classic.hpp:1350
string Name()
Get the name of the current active LineCode.
Definition: dss_classic.hpp:1183
double C0()
Zero-sequence capacitance, nF per unit length.
Definition: dss_classic.hpp:1233
ILineCodes & Name(const char *value)
Sets the active LineCode by Name.
Definition: dss_classic.hpp:1192
int32_t First()
Sets the first LineCode active.
Definition: dss_classic.hpp:1174
VectorT Rmatrix()
Resistance matrix, ohms per unit length.
Definition: dss_classic.hpp:1366
strings AllNames()
Array of strings with all LineCode names in the circuit.
Definition: dss_classic.hpp:1156
double EmergAmps()
Emergency ampere rating.
Definition: dss_classic.hpp:1281
void idx(int32_t value)
Get active LineCode by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:1224
VectorT Xmatrix()
Reactance matrix, ohms per unit length.
Definition: dss_classic.hpp:1426
int32_t Count()
Number of LineCode objects in active circuit.
Definition: dss_classic.hpp:1165
int32_t idx()
Get active LineCode by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:1215
double C1()
Positive-sequence capacitance, nF per unit length.
Definition: dss_classic.hpp:1248
double X1()
Posiive-sequence reactance, ohms per unit length.
Definition: dss_classic.hpp:1410
double X0()
Zero Sequence Reactance, Ohms per unit length.
Definition: dss_classic.hpp:1395
int32_t Phases()
Number of Phases.
Definition: dss_classic.hpp:1320
VectorT Cmatrix()
Capacitance matrix, nF per unit length.
Definition: dss_classic.hpp:1264
double R0()
Zero-Sequence Resistance, ohms per unit length.
Definition: dss_classic.hpp:1335
int32_t Next()
Sets the next LineCode active.
Definition: dss_classic.hpp:1206
Definition: dss_classic.hpp:9070
int32_t idx()
Get active LineGeometrie by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:9140
string Name()
Get the name of the current active LineGeometrie.
Definition: dss_classic.hpp:9108
int32_t Nconds()
Number of conductors in this geometry.
Definition: dss_classic.hpp:9327
double NormAmps()
Normal ampere rating.
Definition: dss_classic.hpp:9182
int32_t Count()
Number of LineGeometrie objects in active circuit.
Definition: dss_classic.hpp:9090
int32_t Next()
Sets the next LineGeometrie active.
Definition: dss_classic.hpp:9131
VectorT Cmatrix(double Frequency, double Length, int32_t Units)
Capacitance matrix, nF.
Definition: dss_classic.hpp:9266
ILineGeometries & Name(const char *value)
Sets the active LineGeometrie by Name.
Definition: dss_classic.hpp:9117
double EmergAmps()
Emergency ampere rating.
Definition: dss_classic.hpp:9167
strings AllNames()
Array of strings with all LineGeometrie names in the circuit.
Definition: dss_classic.hpp:9081
void idx(int32_t value)
Get active LineGeometrie by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:9149
VectorT Xmatrix(double Frequency, double Length, int32_t Units)
Reactance matrix, ohms.
Definition: dss_classic.hpp:9246
VectorT Rmatrix(double Frequency, double Length, int32_t Units)
Resistance matrix, ohms.
Definition: dss_classic.hpp:9236
int32_t First()
Sets the first LineGeometrie active.
Definition: dss_classic.hpp:9099
VectorT Ycoords()
Get/Set the Y (vertical/height) coordinates of the conductors.
Definition: dss_classic.hpp:9310
VectorT Zmatrix(double Frequency, double Length, int32_t Units)
Complex impedance matrix, ohms.
Definition: dss_classic.hpp:9256
strings Conductors()
Array of strings with names of all conductors in the active LineGeometry object.
Definition: dss_classic.hpp:9158
int32_t Phases()
Number of Phases.
Definition: dss_classic.hpp:9221
VectorT Xcoords()
Get/Set the X (horizontal) coordinates of the conductors.
Definition: dss_classic.hpp:9292
Definition: dss_classic.hpp:1442
int32_t First()
Sets the first LineSpacing active.
Definition: dss_classic.hpp:1471
string Name()
Get the name of the current active LineSpacing.
Definition: dss_classic.hpp:1480
int32_t Phases()
Number of Phases.
Definition: dss_classic.hpp:1530
int32_t Count()
Number of LineSpacing objects in active circuit.
Definition: dss_classic.hpp:1462
VectorT Xcoords()
Get/Set the X (horizontal) coordinates of the conductors.
Definition: dss_classic.hpp:1570
ILineSpacings & Name(const char *value)
Sets the active LineSpacing by Name.
Definition: dss_classic.hpp:1489
strings AllNames()
Array of strings with all LineSpacing names in the circuit.
Definition: dss_classic.hpp:1453
int32_t idx()
Get active LineSpacing by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:1512
void idx(int32_t value)
Get active LineSpacing by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:1521
VectorT Ycoords()
Get/Set the Y (vertical/height) coordinates of the conductors.
Definition: dss_classic.hpp:1588
int32_t Next()
Sets the next LineSpacing active.
Definition: dss_classic.hpp:1503
Definition: dss_classic.hpp:9341
void idx(int32_t value)
Get active Line by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:9420
int32_t Next()
Sets the next Line active.
Definition: dss_classic.hpp:9402
int32_t Phases()
Number of Phases, this Line element.
Definition: dss_classic.hpp:9631
string Name()
Get the name of the current active Line.
Definition: dss_classic.hpp:9379
double X1()
Positive Sequence reactance, ohms per unit length.
Definition: dss_classic.hpp:9781
double Rho()
Earth Resistivity, m-ohms.
Definition: dss_classic.hpp:9691
int32_t Count()
Number of Line objects in active circuit.
Definition: dss_classic.hpp:9361
double C0()
Zero Sequence capacitance, nanofarads per unit length.
Definition: dss_classic.hpp:9481
double C1()
Positive Sequence capacitance, nanofarads per unit length.
Definition: dss_classic.hpp:9496
int32_t idx()
Get active Line by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:9411
double SeasonRating()
Delivers the rating for the current season (in Amps) if the "SeasonalRatings" option is active.
Definition: dss_classic.hpp:9844
string Bus2()
Name of bus for terminal 2.
Definition: dss_classic.hpp:9460
int32_t Parent()
Sets Parent of the active Line to be the active line.
Definition: dss_classic.hpp:9622
VectorT Rmatrix()
Resistance matrix (full), ohms per unit length.
Definition: dss_classic.hpp:9707
string Geometry()
Line geometry code.
Definition: dss_classic.hpp:9541
int32_t TotalCust()
Total Number of customers served from this line section.
Definition: dss_classic.hpp:9745
double Rg()
Earth return resistance value used to compute line impedances at power frequency.
Definition: dss_classic.hpp:9676
string LineCode()
Name of LineCode object that defines the impedances.
Definition: dss_classic.hpp:9577
double Xg()
Earth return reactance value used to compute line impedances at power frequency.
Definition: dss_classic.hpp:9796
string Bus1()
Name of bus for terminal 1.
Definition: dss_classic.hpp:9439
double R1()
Positive Sequence resistance, ohms per unit length.
Definition: dss_classic.hpp:9661
double NormAmps()
Normal ampere rating of Line.
Definition: dss_classic.hpp:9598
ILines & Name(const char *value)
Sets the active Line by Name.
Definition: dss_classic.hpp:9388
bool IsSwitch()
Sets/gets the Line element switch status.
Definition: dss_classic.hpp:9853
int32_t NumCust()
Number of customers on this line section.
Definition: dss_classic.hpp:9613
double X0()
Zero Sequence reactance ohms per unit length.
Definition: dss_classic.hpp:9766
double EmergAmps()
Emergency (maximum) ampere rating of Line.
Definition: dss_classic.hpp:9526
double R0()
Zero Sequence resistance, ohms per unit length.
Definition: dss_classic.hpp:9646
strings AllNames()
Array of strings with all Line names in the circuit.
Definition: dss_classic.hpp:9352
string Spacing()
Line spacing code.
Definition: dss_classic.hpp:9724
double Length()
Length of line section in units compatible with the LineCode definition.
Definition: dss_classic.hpp:9562
int32_t First()
Sets the first Line active.
Definition: dss_classic.hpp:9370
VectorT Yprim()
Yprimitive: Does Nothing at present on Put; Dangerous.
Definition: dss_classic.hpp:9827
Definition: dss_classic.hpp:1604
int32_t Count()
Number of LoadShape objects in active circuit.
Definition: dss_classic.hpp:1624
ILoadShapes & Name(const char *value)
Sets the active LoadShape by Name.
Definition: dss_classic.hpp:1651
string Name()
Get the name of the current active LoadShape.
Definition: dss_classic.hpp:1642
double HrInterval()
Fixed interval time value, hours.
Definition: dss_classic.hpp:1707
int32_t First()
Sets the first LoadShape active.
Definition: dss_classic.hpp:1633
strings AllNames()
Array of strings with all LoadShape names in the circuit.
Definition: dss_classic.hpp:1615
int32_t Next()
Sets the next LoadShape active.
Definition: dss_classic.hpp:1665
double QBase()
Base for normalizing Q curve.
Definition: dss_classic.hpp:1782
void UseFloat32()
Converts the current LoadShape data to float32/single precision.
Definition: dss_classic.hpp:1862
int32_t idx()
Get active LoadShape by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:1674
bool UseActual()
Boolean flag to let Loads know to use the actual value in the curve rather than use the value as a mu...
Definition: dss_classic.hpp:1833
VectorT Pmult()
Array of doubles for the P multiplier in the Loadshape.
Definition: dss_classic.hpp:1765
double MinInterval()
Fixed Interval time value, in minutes.
Definition: dss_classic.hpp:1722
VectorT Qmult()
Array of doubles containing the Q multipliers.
Definition: dss_classic.hpp:1798
VectorT TimeArray()
Time array in hours correscponding to P and Q multipliers when the Interval=0.
Definition: dss_classic.hpp:1816
int32_t Npts()
Get/set Number of points in active Loadshape.
Definition: dss_classic.hpp:1737
void idx(int32_t value)
Get active LoadShape by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:1683
void UseFloat64()
Converts the current LoadShape data to float64/double precision.
Definition: dss_classic.hpp:1873
Definition: dss_classic.hpp:9867
double RelWeight()
Relative Weighting factor for the active LOAD.
Definition: dss_classic.hpp:10159
string Yearly()
Name of yearly duration loadshape.
Definition: dss_classic.hpp:10300
int32_t First()
Sets the first Load active.
Definition: dss_classic.hpp:9896
double AllocationFactor()
Factor for allocating loads by connected xfkva.
Definition: dss_classic.hpp:9955
string Name()
Get the name of the current active Load.
Definition: dss_classic.hpp:9905
double Cfactor()
Factor relates average to peak kw.
Definition: dss_classic.hpp:10021
double kW()
Set kW for active Load.
Definition: dss_classic.hpp:10396
double pctSeriesRL()
Percent of Load that is modeled as series R-L for harmonics studies.
Definition: dss_classic.hpp:10471
double Rneut()
Neutral resistance for wye-connected loads.
Definition: dss_classic.hpp:10174
double Vminpu()
Minimum voltage to apply the load model.
Definition: dss_classic.hpp:10270
VectorT ZIPV()
Array of 7 doubles with values for ZIPV property of the load object.
Definition: dss_classic.hpp:10322
double PctMean()
Average percent of nominal load in Monte Carlo studies; only if no loadshape defined for this load.
Definition: dss_classic.hpp:10129
string CVRcurve()
Name of a loadshape with both Mult and Qmult, for CVR factors as a function of time.
Definition: dss_classic.hpp:9970
strings AllNames()
Array of strings with all Load names in the circuit.
Definition: dss_classic.hpp:9878
string Growth()
Name of the growthshape curve for yearly load growth factors.
Definition: dss_classic.hpp:10048
double Xneut()
Neutral reactance for wye-connected loads.
Definition: dss_classic.hpp:10285
string Sensor()
Name of the sensor monitoring this load.
Definition: dss_classic.hpp:10501
double CVRwatts()
Percent reduction in P for percent reduction in V.
Definition: dss_classic.hpp:10006
double Vminnorm()
Minimum voltage for energy exceeding normal (EEN) evaluations.
Definition: dss_classic.hpp:10255
int32_t NumCust()
Number of customers in this load, defaults to one.
Definition: dss_classic.hpp:10099
double kwh()
kwh billed for this period.
Definition: dss_classic.hpp:10441
int32_t idx()
Get active Load by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:9937
double Vmaxpu()
Maximum per-unit voltage to use the load model.
Definition: dss_classic.hpp:10225
double CVRvars()
Percent reduction in Q for percent reduction in V.
Definition: dss_classic.hpp:9991
bool IsDelta()
Delta loads are connected line-to-line.
Definition: dss_classic.hpp:10069
int32_t Status()
Response to load multipliers: Fixed (growth only), Exempt (no LD curve), Variable (all).
Definition: dss_classic.hpp:10210
double Vminemerg()
Minimum voltage for unserved energy (UE) evaluation.
Definition: dss_classic.hpp:10240
double xfkVA()
Rated service transformer kVA for load allocation, using AllocationFactor.
Definition: dss_classic.hpp:10486
double kva()
Base load kva.
Definition: dss_classic.hpp:10411
void idx(int32_t value)
Get active Load by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:9946
int32_t Count()
Number of Load objects in active circuit.
Definition: dss_classic.hpp:9887
string daily()
Name of the loadshape for a daily load profile.
Definition: dss_classic.hpp:10339
int32_t Model()
The Load Model defines variation of P and Q with voltage.
Definition: dss_classic.hpp:10084
string Spectrum()
Name of harmonic current spectrrum shape.
Definition: dss_classic.hpp:10189
int32_t Next()
Sets the next Load active.
Definition: dss_classic.hpp:9928
double kwhdays()
Length of kwh billing period for average demand calculation.
Definition: dss_classic.hpp:10456
double PctStdDev()
Percent standard deviation for Monte Carlo load studies; if there is no loadshape assigned to this lo...
Definition: dss_classic.hpp:10144
double PF()
Get or set Power Factor for Active Load.
Definition: dss_classic.hpp:10114
string duty()
Name of the loadshape for a duty cycle simulation.
Definition: dss_classic.hpp:10360
double kV()
Set kV rating for active Load.
Definition: dss_classic.hpp:10381
double kvar()
Get/set kvar for active Load.
Definition: dss_classic.hpp:10426
int32_t Phases()
Number of phases.
Definition: dss_classic.hpp:10510
ILoads & Name(const char *value)
Sets the active Load by Name.
Definition: dss_classic.hpp:9914
Definition: dss_classic.hpp:2656
int32_t NumSections()
Number of feeder sections in this meter's zone.
Definition: dss_classic.hpp:2965
VectorT CalcCurrent()
Set the magnitude of the real part of the Calculated Current (normally determined by solution) for th...
Definition: dss_classic.hpp:2849
int32_t NumSectionBranches()
Number of branches (lines) in this section.
Definition: dss_classic.hpp:2947
int32_t CountEndElements()
Number of zone end elements in the active meter zone.
Definition: dss_classic.hpp:2875
int32_t SeqListSize()
Size of Sequence List.
Definition: dss_classic.hpp:3066
int32_t SectSeqIdx()
SequenceIndex of the branch at the head of this section.
Definition: dss_classic.hpp:3048
double SAIDI()
SAIDI for this meter's zone.
Definition: dss_classic.hpp:3021
int32_t CountBranches()
Number of branches in Active energymeter zone.
Definition: dss_classic.hpp:2866
int32_t NumSectionCustomers()
Number of Customers in the active section.
Definition: dss_classic.hpp:2956
string MeteredElement()
Set Name of metered element.
Definition: dss_classic.hpp:2911
int32_t First()
Sets the first Meter active.
Definition: dss_classic.hpp:2694
double SAIFI()
Returns SAIFI for this meter's Zone.
Definition: dss_classic.hpp:3030
int32_t Next()
Sets the next Meter active.
Definition: dss_classic.hpp:2726
int32_t idx()
Get active Meter by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:2735
VectorT RegisterValues()
Array of all the values contained in the Meter registers for the active Meter.
Definition: dss_classic.hpp:3011
VectorT AllocFactors()
Array of doubles: set the phase allocation factors for the active meter.
Definition: dss_classic.hpp:2822
double AvgRepairTime()
Average Repair time in this section of the meter zone.
Definition: dss_classic.hpp:2839
int32_t TotalCustomers()
Total Number of customers in this zone (downline from the EnergyMeter)
Definition: dss_classic.hpp:3099
int32_t OCPDeviceType()
Type of OCP device.
Definition: dss_classic.hpp:2974
double SumBranchFltRates()
Sum of the branch fault rates in this section of the meter's zone.
Definition: dss_classic.hpp:3090
int32_t MeteredTerminal()
set Number of Metered Terminal
Definition: dss_classic.hpp:2932
int32_t SequenceIndex()
Get/set Index into Meter's SequenceList that contains branch pointers in lexical order.
Definition: dss_classic.hpp:3075
strings AllNames()
Array of strings with all Meter names in the circuit.
Definition: dss_classic.hpp:2676
double CustInterrupts()
Total customer interruptions for this Meter zone based on reliability calcs.
Definition: dss_classic.hpp:2884
string Name()
Get the name of the current active Meter.
Definition: dss_classic.hpp:2703
strings AllEndElements()
Array of names of all zone end elements.
Definition: dss_classic.hpp:2812
strings AllBranchesInZone()
Wide string list of all branches in zone of the active energymeter object.
Definition: dss_classic.hpp:2803
bool DIFilesAreOpen()
Global Flag in the DSS to indicate if Demand Interval (DI) files have been properly opened.
Definition: dss_classic.hpp:2893
double FaultRateXRepairHrs()
Sum of Fault Rate time Repair Hrs in this section of the meter zone.
Definition: dss_classic.hpp:2902
void idx(int32_t value)
Get active Meter by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:2744
double SAIFIKW()
SAIFI based on kW rather than number of customers.
Definition: dss_classic.hpp:3039
VectorT Peakcurrent()
Array of doubles to set values of Peak Current property.
Definition: dss_classic.hpp:2984
strings ZonePCE()
Returns the list of all PCE within the area covered by the energy meter.
Definition: dss_classic.hpp:2667
IMeters & Name(const char *value)
Sets the active Meter by Name.
Definition: dss_classic.hpp:2712
int32_t SectTotalCust()
Total Customers downline from this section.
Definition: dss_classic.hpp:3057
VectorT Totals()
Totals of all registers of all meters.
Definition: dss_classic.hpp:3109
int32_t Count()
Number of Meter objects in active circuit.
Definition: dss_classic.hpp:2685
strings RegisterNames()
Array of strings containing the names of the registers.
Definition: dss_classic.hpp:3001
Definition: dss_classic.hpp:1881
int32_t Mode()
Set Monitor mode (bitmask integer - see DSS Help)
Definition: dss_classic.hpp:2086
string Name()
Get the name of the current active Monitor.
Definition: dss_classic.hpp:1932
int32_t First()
Sets the first Monitor active.
Definition: dss_classic.hpp:1923
void idx(int32_t value)
Get active Monitor by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:1973
VectorT dblFreq()
Array of doubles containing frequency values for harmonics mode solutions; Empty for time mode soluti...
Definition: dss_classic.hpp:2144
int32_t FileVersion()
Monitor File Version (integer)
Definition: dss_classic.hpp:2068
int32_t NumChannels()
Number of Channels in the active Monitor.
Definition: dss_classic.hpp:2101
int32_t Count()
Number of Monitor objects in active circuit.
Definition: dss_classic.hpp:1914
int32_t idx()
Get active Monitor by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:1964
int32_t RecordSize()
Size of each record in ByteStream (Integer).
Definition: dss_classic.hpp:2110
string FileName()
Name of CSV file associated with active Monitor.
Definition: dss_classic.hpp:2059
string Element()
Full object name of element being monitored.
Definition: dss_classic.hpp:2038
VectorT dblHour()
Array of doubles containing time value in hours for time-sampled monitor values; Empty if frequency-s...
Definition: dss_classic.hpp:2155
IMonitors & Name(const char *value)
Sets the active Monitor by Name.
Definition: dss_classic.hpp:1941
int32_t SampleCount()
Number of Samples in Monitor at Present.
Definition: dss_classic.hpp:2119
strings Header()
Header string; Array of strings containing Channel names.
Definition: dss_classic.hpp:2077
int32_t Next()
Sets the next Monitor active.
Definition: dss_classic.hpp:1955
int32_t Terminal()
Terminal number of element being monitored.
Definition: dss_classic.hpp:2128
strings AllNames()
Array of strings with all Monitor names in the circuit.
Definition: dss_classic.hpp:1905
VectorT ByteStream()
Byte Array containing monitor stream values.
Definition: dss_classic.hpp:2028
VectorT Channel(int32_t Index)
Array of float64 for the specified channel (usage: MyArray = DSSMonitor.Channel(i)).
Definition: dss_classic.hpp:1895
Definition: dss_classic.hpp:3119
VectorT AllSeqCurrents()
Double array of the symmetrical component currents into each 3-phase terminal, for each PD element.
Definition: dss_classic.hpp:3425
VectorT AllPowers()
Complex array of powers into each conductor of each terminal, for each PD element.
Definition: dss_classic.hpp:3438
VectorT AllNumTerminals()
Integer array listing the number of terminals of all PD elements.
Definition: dss_classic.hpp:3490
int32_t Next()
Advance to the next PD element in the circuit.
Definition: dss_classic.hpp:3227
VectorT AllCurrents()
Complex array of currents for all conductors, all terminals, for each PD element.
Definition: dss_classic.hpp:3386
double Lambda()
Failure rate for this branch.
Definition: dss_classic.hpp:3195
double TotalMiles()
Total miles of line from this element to the end of the zone.
Definition: dss_classic.hpp:3279
string Name()
Get/Set name of active PD Element.
Definition: dss_classic.hpp:3205
VectorT AllPctEmerg(bool AllNodes=false)
Array of doubles with the maximum current across the conductors as a percentage of the Emergency Ampe...
Definition: dss_classic.hpp:3373
VectorT AllNumPhases()
Integer array listing the number of phases of all PD elements.
Definition: dss_classic.hpp:3464
VectorT AllSeqPowers()
Double array of sequence powers into each 3-phase teminal, for each PD element.
Definition: dss_classic.hpp:3451
int32_t Count()
Number of PD elements (including disabled elements)
Definition: dss_classic.hpp:3139
VectorT AllMaxCurrents(bool AllNodes=false)
Array of doubles with the maximum current across the conductors, for each PD element.
Definition: dss_classic.hpp:3333
int32_t SectionID()
Integer ID of the feeder section that this PDElement branch is part of.
Definition: dss_classic.hpp:3270
strings AllNames()
Array of strings consisting of all PD element names.
Definition: dss_classic.hpp:3314
VectorT AllCurrentsMagAng()
Complex array (magnitude and angle format) of currents for all conductors, all terminals,...
Definition: dss_classic.hpp:3399
double pctPermanent()
Get/Set percent of faults that are permanent (require repair).
Definition: dss_classic.hpp:3297
VectorT AllNumConductors()
Integer array listing the number of conductors of all PD elements.
Definition: dss_classic.hpp:3477
double FaultRate()
Get/Set Number of failures per year.
Definition: dss_classic.hpp:3149
int32_t FromTerminal()
Number of the terminal of active PD element that is on the "from" side.
Definition: dss_classic.hpp:3175
VectorT AllCplxSeqCurrents()
Complex double array of Sequence Currents for all conductors of all terminals, for each PD elements.
Definition: dss_classic.hpp:3412
VectorT AllPctNorm(bool AllNodes=false)
Array of doubles with the maximum current across the conductors as a percentage of the Normal Ampere ...
Definition: dss_classic.hpp:3353
int32_t Numcustomers()
Number of customers, this branch.
Definition: dss_classic.hpp:3236
double RepairTime()
Average repair time for this element in hours.
Definition: dss_classic.hpp:3255
bool IsShunt()
Boolean indicating of PD element should be treated as a shunt element rather than a series element.
Definition: dss_classic.hpp:3186
int32_t First()
Set the first enabled PD element to be the active element.
Definition: dss_classic.hpp:3165
int32_t ParentPDElement()
Sets the parent PD element to be the active circuit element.
Definition: dss_classic.hpp:3246
double AccumulatedL()
accummulated failure rate for this branch on downline
Definition: dss_classic.hpp:3130
int32_t Totalcustomers()
Total number of customers from this branch to the end of the zone.
Definition: dss_classic.hpp:3288
Definition: dss_classic.hpp:3499
double kW()
get kW output
Definition: dss_classic.hpp:3652
strings AllNames()
Array of strings with all PVSystem names in the circuit.
Definition: dss_classic.hpp:3510
string duty()
Name of the load shape to use for duty cycle dispatch simulations such as for solar ramp rate studies...
Definition: dss_classic.hpp:3699
double Pmpp()
Gets/sets the rated max power of the PV array for 1.0 kW/sq-m irradiance and a user-selected array te...
Definition: dss_classic.hpp:3831
string yearly()
Dispatch shape to use for yearly simulations.
Definition: dss_classic.hpp:3723
int32_t First()
Sets the first PVSystem active.
Definition: dss_classic.hpp:3528
string Tduty()
Temperature shape to use for duty cycle dispatch simulations such as for solar ramp rate studies.
Definition: dss_classic.hpp:3774
int32_t Count()
Number of PVSystem objects in active circuit.
Definition: dss_classic.hpp:3519
string Sensor()
Name of the sensor monitoring this element.
Definition: dss_classic.hpp:3846
IPVSystems & Name(const char *value)
Sets the active PVSystem by Name.
Definition: dss_classic.hpp:3546
strings RegisterNames()
Array of PVSYSTEM energy meter register names.
Definition: dss_classic.hpp:3617
VectorT RegisterValues()
Array of doubles containing values in PVSystem registers.
Definition: dss_classic.hpp:3627
string Tyearly()
Temperature shape to use for yearly simulations.
Definition: dss_classic.hpp:3799
double IrradianceNow()
Returns the current irradiance value for the active PVSystem.
Definition: dss_classic.hpp:3821
int32_t idx()
Get active PVSystem by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:3569
string Name()
Get the name of the current active PVSystem.
Definition: dss_classic.hpp:3537
void idx(int32_t value)
Get active PVSystem by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:3578
int32_t Next()
Sets the next PVSystem active.
Definition: dss_classic.hpp:3560
double Irradiance()
Get/set the present value of the Irradiance property in kW/m²
Definition: dss_classic.hpp:3587
string daily()
Name of the loadshape for a daily PVSystem profile.
Definition: dss_classic.hpp:3676
string Tdaily()
Temperature shape to use for daily simulations.
Definition: dss_classic.hpp:3747
double kvar()
Get/set kvar output value.
Definition: dss_classic.hpp:3661
double PF()
Get/set the power factor for the active PVSystem.
Definition: dss_classic.hpp:3602
double kVArated()
Get/set Rated kVA of the PVSystem.
Definition: dss_classic.hpp:3637
Definition: dss_classic.hpp:3854
int32_t NumCPUs()
Delivers the number of CPUs on the current PC.
Definition: dss_classic.hpp:3959
VectorT ActorProgress()
Gets the progress of all existing actors in pct.
Definition: dss_classic.hpp:3922
int32_t ActiveActor()
Gets/sets the ID of the Active Actor.
Definition: dss_classic.hpp:3875
int32_t ActorCPU()
Gets/sets the CPU of the Active Actor.
Definition: dss_classic.hpp:3906
int32_t NumOfActors()
Gets the number of Actors created.
Definition: dss_classic.hpp:3977
int32_t ActiveParallel()
(read) Sets ON/OFF (1/0) Parallel features of the Engine (write) Delivers if the Parallel features of...
Definition: dss_classic.hpp:3891
int32_t NumCores()
Delivers the number of Cores of the local PC.
Definition: dss_classic.hpp:3968
VectorT ActorStatus()
Gets the status of each actor.
Definition: dss_classic.hpp:3933
int32_t ConcatenateReports()
(read) Reads the values of the ConcatenateReports option (1=enabled, 0=disabled) (write) Enable/Disab...
Definition: dss_classic.hpp:3944
Definition: dss_classic.hpp:2164
string WhiteSpace()
(read) Get the characters used for White space in the command string.
Definition: dss_classic.hpp:2346
VectorT Matrix(int32_t ExpectedOrder)
Use this property to parse a Matrix token in OpenDSS format.
Definition: dss_classic.hpp:2175
string CmdString()
String to be parsed.
Definition: dss_classic.hpp:2246
int32_t IntValue()
Return next parameter as a long integer.
Definition: dss_classic.hpp:2318
VectorT SymMatrix(int32_t ExpectedOrder)
Use this property to parse a matrix token specified in lower triangle form.
Definition: dss_classic.hpp:2185
string StrValue()
Return next parameter as a string.
Definition: dss_classic.hpp:2336
string EndQuote()
String containing characters, in order, that match the beginning quote characters in BeginQuote.
Definition: dss_classic.hpp:2297
double DblValue()
Return next parameter as a double.
Definition: dss_classic.hpp:2267
string Delimiters()
String defining hard delimiters used to separate token on the command string.
Definition: dss_classic.hpp:2276
string NextParam()
Get next token and return tag name (before = sign) if any.
Definition: dss_classic.hpp:2327
VectorT Vector(int32_t ExpectedSize)
Returns token as array of doubles.
Definition: dss_classic.hpp:2195
bool AutoIncrement()
Default is FALSE.
Definition: dss_classic.hpp:2210
string BeginQuote()
Get/Set String containing the the characters for Quoting in OpenDSS scripts.
Definition: dss_classic.hpp:2225
Definition: dss_classic.hpp:3985
bool Parallel()
Indicates whether Rmatrix and Xmatrix are to be considered in parallel.
Definition: dss_classic.hpp:4098
double X()
Reactance, each phase, ohms at base frequency.
Definition: dss_classic.hpp:4275
double R()
Resistance (in series with reactance), each phase, ohms.
Definition: dss_classic.hpp:4260
VectorT Z1()
Positive-sequence impedance, ohms, as a 2-element array representing a complex number.
Definition: dss_classic.hpp:4366
double kvar()
Total kvar, all phases.
Definition: dss_classic.hpp:4143
VectorT Z0()
Zero-sequence impedance, ohms, as a 2-element array representing a complex number.
Definition: dss_classic.hpp:4410
VectorT Xmatrix()
Reactance matrix, ohms at base frequency.
Definition: dss_classic.hpp:4324
strings AllNames()
Array of strings with all Reactor names in the circuit.
Definition: dss_classic.hpp:3996
string RCurve()
Name of XYCurve object, previously defined, describing per-unit variation of phase resistance,...
Definition: dss_classic.hpp:4239
double LmH()
Inductance, mH.
Definition: dss_classic.hpp:4113
int32_t Next()
Sets the next Reactor active.
Definition: dss_classic.hpp:4046
int32_t Phases()
Number of phases.
Definition: dss_classic.hpp:4158
int32_t Count()
Number of Reactor objects in active circuit.
Definition: dss_classic.hpp:4005
VectorT Rmatrix()
Resistance matrix, ohms at base frequency.
Definition: dss_classic.hpp:4306
VectorT Z()
Alternative way of defining R and X properties.
Definition: dss_classic.hpp:4342
bool IsDelta()
Delta connection or wye?
Definition: dss_classic.hpp:4083
string Name()
Get the name of the current active Reactor.
Definition: dss_classic.hpp:4023
int32_t SpecType()
How the reactor data was provided: 1=kvar, 2=R+jX, 3=R and X matrices, 4=sym components.
Definition: dss_classic.hpp:4074
int32_t idx()
Get active Reactor by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:4055
string LCurve()
Name of XYCurve object, previously defined, describing per-unit variation of phase inductance,...
Definition: dss_classic.hpp:4218
string Bus2()
Name of 2nd bus.
Definition: dss_classic.hpp:4197
VectorT Z2()
Negative-sequence impedance, ohms, as a 2-element array representing a complex number.
Definition: dss_classic.hpp:4388
IReactors & Name(const char *value)
Sets the active Reactor by Name.
Definition: dss_classic.hpp:4032
void idx(int32_t value)
Get active Reactor by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:4064
double Rp()
Resistance in parallel with R and X (the entire branch).
Definition: dss_classic.hpp:4290
int32_t First()
Sets the first Reactor active.
Definition: dss_classic.hpp:4014
double kV()
For 2, 3-phase, kV phase-phase.
Definition: dss_classic.hpp:4128
string Bus1()
Name of first bus.
Definition: dss_classic.hpp:4175
Definition: dss_classic.hpp:4426
int32_t Shots()
Number of shots to lockout (fast + delayed)
Definition: dss_classic.hpp:4646
int32_t First()
Sets the first Recloser active.
Definition: dss_classic.hpp:4455
IReclosers & Name(const char *value)
Sets the active Recloser by Name.
Definition: dss_classic.hpp:4473
int32_t SwitchedTerm()
Terminal number of the controlled device being switched by the Recloser.
Definition: dss_classic.hpp:4682
double GroundTrip()
Ground (3I0) trip multiplier or actual amps.
Definition: dss_classic.hpp:4539
double PhaseInst()
Phase instantaneous curve multipler or actual amps.
Definition: dss_classic.hpp:4605
int32_t NumFast()
Number of fast shots.
Definition: dss_classic.hpp:4590
int32_t Count()
Number of Recloser objects in active circuit.
Definition: dss_classic.hpp:4446
strings AllNames()
Array of strings with all Recloser names in the circuit.
Definition: dss_classic.hpp:4437
string SwitchedObj()
Full name of the circuit element that is being switched by the Recloser.
Definition: dss_classic.hpp:4661
int32_t NormalState()
Get/set normal state (ActionCodes.Open=1, ActionCodes.Close=2) of the recloser.
Definition: dss_classic.hpp:4724
int32_t MonitoredTerm()
Terminal number of Monitored object for the Recloser.
Definition: dss_classic.hpp:4575
double PhaseTrip()
Phase trip curve multiplier or actual amps.
Definition: dss_classic.hpp:4620
int32_t Next()
Sets the next Recloser active.
Definition: dss_classic.hpp:4487
int32_t State()
Get/Set present state of recloser.
Definition: dss_classic.hpp:4709
double GroundInst()
Ground (3I0) instantaneous trip setting - curve multipler or actual amps.
Definition: dss_classic.hpp:4524
VectorT RecloseIntervals()
Array of Doubles: reclose intervals, s, between shots.
Definition: dss_classic.hpp:4636
void idx(int32_t value)
Get active Recloser by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:4505
string Name()
Get the name of the current active Recloser.
Definition: dss_classic.hpp:4464
int32_t idx()
Get active Recloser by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:4496
string MonitoredObj()
Full name of object this Recloser to be monitored.
Definition: dss_classic.hpp:4554
void Reset()
Reset recloser to normal state.
Definition: dss_classic.hpp:4698
Definition: dss_classic.hpp:2366
void DoDefault()
Do Default Reduction algorithm.
Definition: dss_classic.hpp:2487
void SaveCircuit(const char *CktName)
Save present (reduced) circuit Filename is listed in the Text Result interface.
Definition: dss_classic.hpp:2470
double Zmag()
Zmag (ohms) for Reduce Option for Z of short lines.
Definition: dss_classic.hpp:2377
string StartPDElement()
Start element for Remove Branch function.
Definition: dss_classic.hpp:2428
string EditString()
Edit String for RemoveBranches functions.
Definition: dss_classic.hpp:2407
bool KeepLoad()
Keep load flag (T/F) for Reduction options that remove branches.
Definition: dss_classic.hpp:2392
string EnergyMeter()
Name of Energymeter to use for reduction.
Definition: dss_classic.hpp:2449
void DoDangling()
Reduce Dangling Algorithm; branches with nothing connected.
Definition: dss_classic.hpp:2503
void DoShortLines()
Do ShortLines algorithm: Set Zmag first if you don't want the default.
Definition: dss_classic.hpp:2495
void SaveCircuit(const string &CktName)
Save present (reduced) circuit Filename is listed in the Text Result interface.
Definition: dss_classic.hpp:2479
Definition: dss_classic.hpp:4738
IRegControls & Name(const char *value)
Sets the active RegControl by Name.
Definition: dss_classic.hpp:4785
double Delay()
Time delay [s] after arming before the first tap change.
Definition: dss_classic.hpp:4846
int32_t Winding()
Winding number for PT and CT connections.
Definition: dss_classic.hpp:5143
int32_t TapNumber()
Integer number of the tap that the controlled transformer winding is currentliy on.
Definition: dss_classic.hpp:5077
double ReverseR()
Reverse LDC R setting in Volts.
Definition: dss_classic.hpp:5017
double TapDelay()
Time delay [s] for subsequent tap changes in a set.
Definition: dss_classic.hpp:5062
double ReverseX()
Reverse LDC X setting in volts.
Definition: dss_classic.hpp:5047
string MonitoredBus()
Name of a remote regulated bus, in lieu of LDC settings.
Definition: dss_classic.hpp:4966
double PTratio()
PT ratio for voltage control settings.
Definition: dss_classic.hpp:4987
bool IsInverseTime()
Time delay is inversely adjsuted, proportinal to the amount of voltage outside the regulating band.
Definition: dss_classic.hpp:4921
int32_t MaxTapChange()
Maximum tap change per iteration in STATIC solution mode.
Definition: dss_classic.hpp:4951
string Transformer()
Name of the transformer this regulator controls.
Definition: dss_classic.hpp:5107
double ReverseBand()
Bandwidth in reverse direction, centered on reverse Vreg.
Definition: dss_classic.hpp:5002
int32_t TapWinding()
Tapped winding number.
Definition: dss_classic.hpp:5092
int32_t Count()
Number of RegControl objects in active circuit.
Definition: dss_classic.hpp:4758
string Name()
Get the name of the current active RegControl.
Definition: dss_classic.hpp:4776
int32_t idx()
Get active RegControl by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:4808
double CTPrimary()
CT primary ampere rating (secondary is 0.2 amperes)
Definition: dss_classic.hpp:4831
double ReverseVreg()
Target voltage in the revese direction, on PT secondary base.
Definition: dss_classic.hpp:5032
int32_t Next()
Sets the next RegControl active.
Definition: dss_classic.hpp:4799
double ForwardX()
LDC X setting in Volts.
Definition: dss_classic.hpp:4906
bool IsReversible()
Regulator can use different settings in the reverse direction.
Definition: dss_classic.hpp:4936
double ForwardBand()
Regulation bandwidth in forward direciton, centered on Vreg.
Definition: dss_classic.hpp:4861
int32_t First()
Sets the first RegControl active.
Definition: dss_classic.hpp:4767
void idx(int32_t value)
Get active RegControl by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:4817
double VoltageLimit()
First house voltage limit on PT secondary base.
Definition: dss_classic.hpp:5128
double ForwardVreg()
Target voltage in the forward direction, on PT secondary base.
Definition: dss_classic.hpp:4891
strings AllNames()
Array of strings with all RegControl names in the circuit.
Definition: dss_classic.hpp:4749
double ForwardR()
LDC R setting in Volts.
Definition: dss_classic.hpp:4876
Definition: dss_classic.hpp:5157
int32_t NormalState()
Normal state of relay.
Definition: dss_classic.hpp:5360
string Name()
Get the name of the current active Relay.
Definition: dss_classic.hpp:5195
int32_t Next()
Sets the next Relay active.
Definition: dss_classic.hpp:5218
strings AllNames()
Array of strings with all Relay names in the circuit.
Definition: dss_classic.hpp:5168
void Reset()
Reset relay to normal state.
Definition: dss_classic.hpp:5334
void idx(int32_t value)
Get active Relay by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:5236
string SwitchedObj()
Full name of element that will be switched when relay trips.
Definition: dss_classic.hpp:5281
string MonitoredObj()
Full name of object this Relay is monitoring.
Definition: dss_classic.hpp:5245
int32_t State()
Get/Set present state of relay.
Definition: dss_classic.hpp:5345
int32_t First()
Sets the first Relay active.
Definition: dss_classic.hpp:5186
void Close()
Close the switched object controlled by the relay.
Definition: dss_classic.hpp:5324
int32_t idx()
Get active Relay by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:5227
int32_t Count()
Number of Relay objects in active circuit.
Definition: dss_classic.hpp:5177
int32_t SwitchedTerm()
Terminal number of the switched object that will be opened when the relay trips.
Definition: dss_classic.hpp:5302
IRelays & Name(const char *value)
Sets the active Relay by Name.
Definition: dss_classic.hpp:5204
int32_t MonitoredTerm()
Number of terminal of monitored element that this Relay is monitoring.
Definition: dss_classic.hpp:5266
void Open()
Open relay's controlled element and lock out the relay.
Definition: dss_classic.hpp:5316
Definition: dss_classic.hpp:5374
string Name()
Get the name of the current active Sensor.
Definition: dss_classic.hpp:5412
string MeteredElement()
Full Name of the measured element.
Definition: dss_classic.hpp:5505
VectorT kVS()
Array of doubles for the LL or LN (depending on Delta connection) voltage measurements.
Definition: dss_classic.hpp:5605
bool IsDelta()
True if measured voltages are line-line.
Definition: dss_classic.hpp:5490
VectorT kWS()
Array of doubles for P measurements.
Definition: dss_classic.hpp:5638
void idx(int32_t value)
Get active Sensor by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:5453
int32_t Next()
Sets the next Sensor active.
Definition: dss_classic.hpp:5435
VectorT AllocationFactor()
Array of doubles for the allocation factors for each phase.
Definition: dss_classic.hpp:5656
int32_t idx()
Get active Sensor by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:5444
double PctError()
Assumed percent error in the Sensor measurement.
Definition: dss_classic.hpp:5541
int32_t Count()
Number of Sensor objects in active circuit.
Definition: dss_classic.hpp:5394
int32_t MeteredTerminal()
Number of the measured terminal in the measured element.
Definition: dss_classic.hpp:5526
VectorT Currents()
Array of doubles for the line current measurements; don't use with kWS and kVARS.
Definition: dss_classic.hpp:5473
int32_t First()
Sets the first Sensor active.
Definition: dss_classic.hpp:5403
strings AllNames()
Array of strings with all Sensor names in the circuit.
Definition: dss_classic.hpp:5385
ISensors & Name(const char *value)
Sets the active Sensor by Name.
Definition: dss_classic.hpp:5421
double kVbase()
Voltage base for the sensor measurements.
Definition: dss_classic.hpp:5622
VectorT kVARS()
Array of doubles for Q measurements.
Definition: dss_classic.hpp:5587
bool ReverseDelta()
True if voltage measurements are 1-3, 3-2, 2-1.
Definition: dss_classic.hpp:5556
double Weight()
Weighting factor for this Sensor measurement with respect to other Sensors.
Definition: dss_classic.hpp:5571
Definition: dss_classic.hpp:10524
bool LoadsTerminalCheck()
Controls whether the terminals are checked when updating the currents in Load component.
Definition: dss_classic.hpp:10824
string PriceCurve()
Name of LoadShape object that serves as the source of price signal data for yearly simulations,...
Definition: dss_classic.hpp:10694
bool AllowDuplicates()
{True | False*} Designates whether to allow duplicate names of objects
Definition: dss_classic.hpp:10535
double PriceSignal()
Price Signal for the Circuit.
Definition: dss_classic.hpp:10715
ISettings & AllocationFactors(double value)
(write-only) Sets all load allocation factors for all loads defined by XFKVA property to this value.
Definition: dss_classic.hpp:10811
double EmergVminpu()
Per Unit minimum voltage for Emergency conditions.
Definition: dss_classic.hpp:10616
VectorT VoltageBases()
Array of doubles defining the legal voltage bases in kV L-L.
Definition: dss_classic.hpp:10779
bool ZoneLock()
{True | False*} Locks Zones on energy meters to prevent rebuilding if a circuit change occurs.
Definition: dss_classic.hpp:10796
string AutoBusList()
List of Buses or (File=xxxx) syntax for the AutoAdd solution mode.
Definition: dss_classic.hpp:10550
double EmergVmaxpu()
Per Unit maximum voltage for Emergency conditions.
Definition: dss_classic.hpp:10601
VectorT UEregs()
Array of Integers defining energy meter registers to use for computing UE.
Definition: dss_classic.hpp:10746
bool Trapezoidal()
{True | False *} Gets value of trapezoidal integration flag in energy meters.
Definition: dss_classic.hpp:10730
double NormVminpu()
Per Unit minimum voltage for Normal conditions.
Definition: dss_classic.hpp:10679
double UEweight()
Weighting factor applied to UE register values.
Definition: dss_classic.hpp:10763
double NormVmaxpu()
Per Unit maximum voltage for Normal conditions.
Definition: dss_classic.hpp:10664
VectorT LossRegs()
Integer array defining which energy meter registers to use for computing losses.
Definition: dss_classic.hpp:10632
double LossWeight()
Weighting factor applied to Loss register values.
Definition: dss_classic.hpp:10649
int32_t CktModel()
{dssMultiphase (0) * | dssPositiveSeq (1) } Indicate if the circuit model is positive sequence.
Definition: dss_classic.hpp:10571
int32_t IterateDisabled()
Controls whether First/Next iteration includes or skips disabled circuit elements.
Definition: dss_classic.hpp:10846
bool ControlTrace()
{True | False*} Denotes whether to trace the control actions to a file.
Definition: dss_classic.hpp:10586
Definition: dss_classic.hpp:11735
int32_t Iterations()
Number of iterations taken for last solution.
Definition: dss_classic.hpp:12067
int32_t MaxControlIterations()
Maximum allowable control iterations.
Definition: dss_classic.hpp:12127
strings EventLog()
Array of strings containing the Event Log.
Definition: dss_classic.hpp:11968
string LDCurve()
Load-Duration Curve name for LD modes.
Definition: dss_classic.hpp:12076
int32_t MinIterations()
Minimum number of iterations required for a power flow solution.
Definition: dss_classic.hpp:12157
double IntervalHrs()
Get/Set the Solution.IntervalHrs variable used for devices that integrate / custom solution algorithm...
Definition: dss_classic.hpp:12052
ISolution & StepsizeHr(double value)
(write-only) Set Stepsize in Hr
Definition: dss_classic.hpp:12376
double GenMult()
Default Multiplier applied to generators (like LoadMult)
Definition: dss_classic.hpp:11992
double LoadMult()
Default load multiplier applied to all non-fixed loads.
Definition: dss_classic.hpp:12112
double StepSize()
Time step size in sec.
Definition: dss_classic.hpp:12259
bool Converged()
Flag to indicate whether the circuit solution converged.
Definition: dss_classic.hpp:11911
string DefaultYearly()
Default Yearly load shape (defaults to "Default")
Definition: dss_classic.hpp:11947
int32_t MostIterationsDone()
Max number of iterations required to converge at any control iteration of the most recent solution.
Definition: dss_classic.hpp:12196
int32_t Algorithm()
Base Solution algorithm: {dssNormalSolve | dssNewtonSolve}.
Definition: dss_classic.hpp:11836
double Capkvar()
Capacitor kvar for adding capacitors in AutoAdd mode.
Definition: dss_classic.hpp:11851
double Tolerance()
Solution convergence tolerance.
Definition: dss_classic.hpp:12292
double GenPF()
PF for generators in AutoAdd mode.
Definition: dss_classic.hpp:12007
double Seconds()
Seconds from top of the hour.
Definition: dss_classic.hpp:12244
double pctGrowth()
Percent default annual load growth rate.
Definition: dss_classic.hpp:12361
int32_t ControlMode()
{dssStatic* | dssEvent | dssTime} Modes for control devices
Definition: dss_classic.hpp:11896
bool ControlActionsDone()
Flag indicating the control actions are done.
Definition: dss_classic.hpp:11866
int32_t Hour()
Set Hour for time series solutions.
Definition: dss_classic.hpp:12037
int32_t ControlIterations()
Value of the control iteration counter.
Definition: dss_classic.hpp:11881
int32_t AddType()
Type of device to add in AutoAdd Mode: {dssGen (Default) | dssCap}.
Definition: dss_classic.hpp:11821
int32_t Year()
Set year for planning studies.
Definition: dss_classic.hpp:12331
double Frequency()
Set the Frequency for next solution.
Definition: dss_classic.hpp:11977
int32_t Random()
Randomization mode for random variables "Gaussian" or "Uniform".
Definition: dss_classic.hpp:12229
int32_t LoadModel()
Load Model: {dssPowerFlow (default) | dssAdmittance}.
Definition: dss_classic.hpp:12097
int32_t Number()
Number of solutions to perform for Monte Carlo and time series simulations.
Definition: dss_classic.hpp:12205
double dblHour()
Hour as a double, including fractional part.
Definition: dss_classic.hpp:12346
int32_t MaxIterations()
Max allowable iterations.
Definition: dss_classic.hpp:12142
double GenkW()
Generator kW for AutoAdd mode.
Definition: dss_classic.hpp:12022
int32_t Totaliterations()
Total iterations including control iterations for most recent solution.
Definition: dss_classic.hpp:12322
string ModeID()
ID (text) of the present solution mode.
Definition: dss_classic.hpp:12187
string DefaultDaily()
Default daily load shape (defaults to "Default")
Definition: dss_classic.hpp:11926
int32_t Mode()
Set present solution mode (by a text code - see DSS Help)
Definition: dss_classic.hpp:12172
double Total_Time()
Gets/sets the accumulated time of the simulation.
Definition: dss_classic.hpp:12307
double Time_of_Step()
Get the solution process time + sample time for time step.
Definition: dss_classic.hpp:12283
double Process_Time()
Gets the time required to perform the latest solution (Read only)
Definition: dss_classic.hpp:12220
bool SystemYChanged()
Flag that indicates if elements of the System Y have been changed by recent activity.
Definition: dss_classic.hpp:12274
ISolution & StepsizeMin(double value)
(write-only) Set Stepsize in minutes
Definition: dss_classic.hpp:12386
Definition: dss_classic.hpp:11596
int32_t Count()
Number of Storage objects in active circuit.
Definition: dss_classic.hpp:11616
strings AllNames()
Array of strings with all Storage names in the circuit.
Definition: dss_classic.hpp:11607
VectorT RegisterValues()
Array of values in Storage registers.
Definition: dss_classic.hpp:11726
int32_t First()
Sets the first Storage active.
Definition: dss_classic.hpp:11625
int32_t Next()
Sets the next Storage active.
Definition: dss_classic.hpp:11657
string Name()
Get the name of the current active Storage.
Definition: dss_classic.hpp:11634
double puSOC()
Per unit state of charge.
Definition: dss_classic.hpp:11684
int32_t State()
Get/set state: 0=Idling; 1=Discharging; -1=Charging;.
Definition: dss_classic.hpp:11701
strings RegisterNames()
Array of Names of all Storage energy meter registers.
Definition: dss_classic.hpp:11716
void idx(int32_t value)
Get active Storage by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:11675
IStorages & Name(const char *value)
Sets the active Storage by Name.
Definition: dss_classic.hpp:11643
int32_t idx()
Get active Storage by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:11666
Definition: dss_classic.hpp:5665
ISwtControls & Name(const char *value)
Sets the active SwtControl by Name.
Definition: dss_classic.hpp:5712
int32_t First()
Sets the first SwtControl active.
Definition: dss_classic.hpp:5694
int32_t State()
Set it to force the switch to a specified state, otherwise read its present state.
Definition: dss_classic.hpp:5818
bool IsLocked()
The lock prevents both manual and automatic switch operation.
Definition: dss_classic.hpp:5788
int32_t SwitchedTerm()
Terminal number where the switch is located on the SwitchedObj.
Definition: dss_classic.hpp:5854
string SwitchedObj()
Full name of the switched element.
Definition: dss_classic.hpp:5833
int32_t Action()
Open or Close the switch.
Definition: dss_classic.hpp:5758
strings AllNames()
Array of strings with all SwtControl names in the circuit.
Definition: dss_classic.hpp:5676
void idx(int32_t value)
Get active SwtControl by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:5744
int32_t Next()
Sets the next SwtControl active.
Definition: dss_classic.hpp:5726
int32_t idx()
Get active SwtControl by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:5735
double Delay()
Time delay [s] betwen arming and opening or closing the switch.
Definition: dss_classic.hpp:5773
string Name()
Get the name of the current active SwtControl.
Definition: dss_classic.hpp:5703
int32_t Count()
Number of SwtControl objects in active circuit.
Definition: dss_classic.hpp:5685
int32_t NormalState()
Get/set Normal state of switch (see actioncodes) dssActionOpen or dssActionClose.
Definition: dss_classic.hpp:5803
Definition: dss_classic.hpp:5868
double NormAmps()
Normal Ampere rating.
Definition: dss_classic.hpp:5971
strings AllNames()
Array of strings with all TSData names in the circuit.
Definition: dss_classic.hpp:5879
void idx(int32_t value)
Get active TSData by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:5947
int32_t Count()
Number of TSData objects in active circuit.
Definition: dss_classic.hpp:5888
int32_t idx()
Get active TSData by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:5938
int32_t First()
Sets the first TSData active.
Definition: dss_classic.hpp:5897
double EmergAmps()
Emergency ampere rating.
Definition: dss_classic.hpp:5956
int32_t Next()
Sets the next TSData active.
Definition: dss_classic.hpp:5929
string Name()
Get the name of the current active TSData.
Definition: dss_classic.hpp:5906
ITSData & Name(const char *value)
Sets the active TSData by Name.
Definition: dss_classic.hpp:5915
Definition: dss_classic.hpp:6165
string Result()
Result string for the last command.
Definition: dss_classic.hpp:6217
void Commands(const string &value)
Runs a large string as command lines directly in the DSS engine.
Definition: dss_classic.hpp:6177
void Commands(const strings &value)
Runs a list of strings as commands directly in the DSS engine.
Definition: dss_classic.hpp:6187
string Command()
Input command string for the DSS.
Definition: dss_classic.hpp:6196
Definition: dss_classic.hpp:6225
int32_t NumIsolatedBranches()
Number of isolated branches (PD elements and capacitors).
Definition: dss_classic.hpp:6386
string BranchName()
Name of the active branch.
Definition: dss_classic.hpp:6290
int32_t BackwardBranch()
MOve back toward the source, return index of new active branch, or 0 if no more.
Definition: dss_classic.hpp:6281
int32_t ForwardBranch()
Move forward in the tree, return index of new active branch or 0 if no more.
Definition: dss_classic.hpp:6350
int32_t ActiveBranch()
Returns index of the active branch.
Definition: dss_classic.hpp:6236
int32_t Next()
Sets the next branch active, returns 0 if no more.
Definition: dss_classic.hpp:6368
int32_t NumLoops()
Number of loops.
Definition: dss_classic.hpp:6404
int32_t LoopedBranch()
Move to looped branch, return index or 0 if none.
Definition: dss_classic.hpp:6359
int32_t NextLoad()
Next load at the active branch, return index or 0 if no more.
Definition: dss_classic.hpp:6377
int32_t FirstLoad()
First load at the active branch, return index or 0 if none.
Definition: dss_classic.hpp:6341
int32_t NumIsolatedLoads()
Number of isolated loads.
Definition: dss_classic.hpp:6395
int32_t First()
Sets the first branch active, returns 0 if none.
Definition: dss_classic.hpp:6332
strings AllIsolatedBranches()
Array of all isolated branch names.
Definition: dss_classic.hpp:6254
strings AllLoopedPairs()
Array of all looped element names, by pairs.
Definition: dss_classic.hpp:6272
strings AllIsolatedLoads()
Array of all isolated load names.
Definition: dss_classic.hpp:6263
string BusName()
Set the active branch to one containing this bus, return index or 0 if not found.
Definition: dss_classic.hpp:6311
int32_t ActiveLevel()
Topological depth of the active branch.
Definition: dss_classic.hpp:6245
int32_t ParallelBranch()
Move to directly parallel branch, return index or 0 if none.
Definition: dss_classic.hpp:6413
Definition: dss_classic.hpp:6837
strings AllNames()
Array of strings with all Vsource names in the circuit.
Definition: dss_classic.hpp:6848
void idx(int32_t value)
Get active Vsource by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:6916
int32_t First()
Sets the first Vsource active.
Definition: dss_classic.hpp:6866
int32_t Phases()
Number of phases.
Definition: dss_classic.hpp:6970
int32_t Next()
Sets the next Vsource active.
Definition: dss_classic.hpp:6898
double Frequency()
Source frequency in Hz.
Definition: dss_classic.hpp:6955
int32_t Count()
Number of Vsource objects in active circuit.
Definition: dss_classic.hpp:6857
double AngleDeg()
Phase angle of first phase in degrees.
Definition: dss_classic.hpp:6925
double pu()
Per-unit value of source voltage.
Definition: dss_classic.hpp:6985
double BasekV()
Source voltage in kV.
Definition: dss_classic.hpp:6940
IVsources & Name(const char *value)
Sets the active Vsource by Name.
Definition: dss_classic.hpp:6884
int32_t idx()
Get active Vsource by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:6907
string Name()
Get the name of the current active Vsource.
Definition: dss_classic.hpp:6875
Definition: dss_classic.hpp:6999
string Name()
Get the name of the current active WireData.
Definition: dss_classic.hpp:7037
int32_t First()
Sets the first WireData active.
Definition: dss_classic.hpp:7028
double CapRadius()
Equivalent conductor radius for capacitance calcs.
Definition: dss_classic.hpp:7213
int32_t idx()
Get active WireData by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:7069
int32_t Next()
Sets the next WireData active.
Definition: dss_classic.hpp:7060
strings AllNames()
Array of strings with all WireData names in the circuit.
Definition: dss_classic.hpp:7010
double NormAmps()
Normal Ampere rating.
Definition: dss_classic.hpp:7102
int32_t Count()
Number of WireData objects in active circuit.
Definition: dss_classic.hpp:7019
double EmergAmps()
Emergency ampere rating.
Definition: dss_classic.hpp:7087
void idx(int32_t value)
Get active WireData by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:7078
IWireData & Name(const char *value)
Sets the active WireData by Name.
Definition: dss_classic.hpp:7046
Definition: dss_classic.hpp:7227
double Yscale()
Factor to scale Y values from original curve.
Definition: dss_classic.hpp:7396
IXYCurves & Name(const char *value)
Sets the active XYCurve by Name.
Definition: dss_classic.hpp:7274
double y()
Set Y value or get interpolated Y value after setting X.
Definition: dss_classic.hpp:7441
VectorT Yarray()
Get/Set Y values in curve; Set Npts to max number expected if setting.
Definition: dss_classic.hpp:7379
double Xscale()
Factor to scale X values from original curve.
Definition: dss_classic.hpp:7348
int32_t Next()
Sets the next XYCurve active.
Definition: dss_classic.hpp:7288
string Name()
Get the name of the current active XYCurve.
Definition: dss_classic.hpp:7265
int32_t First()
Sets the first XYCurve active.
Definition: dss_classic.hpp:7256
double x()
Set X value or get interpolated value after setting Y.
Definition: dss_classic.hpp:7426
void idx(int32_t value)
Get active XYCurve by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:7306
int32_t Count()
Number of XYCurve objects in active circuit.
Definition: dss_classic.hpp:7247
double Yshift()
Amount to shift Y value from original curve.
Definition: dss_classic.hpp:7411
double Xshift()
Amount to shift X value from original curve.
Definition: dss_classic.hpp:7363
VectorT Xarray()
Get/set X values as a Array of doubles.
Definition: dss_classic.hpp:7331
int32_t Npts()
Get/Set Number of points in X-Y curve.
Definition: dss_classic.hpp:7315
int32_t idx()
Get active XYCurve by index; index is 1-based: 1..count.
Definition: dss_classic.hpp:7297
strings AllNames()
Array of strings with all XYCurve names in the circuit.
Definition: dss_classic.hpp:7238
Definition: dss_classic.hpp:2536
uint64_t SolverOptions()
Sparse solver options.
Definition: dss_classic.hpp:2596
Definition: dss_classic.hpp:7455
VectorT Extract(const string &FileName)
Extracts the contents of the file "FileName" from the current (open) ZIP file.
Definition: dss_classic.hpp:7561
strings List(const char *regexp="")
List of strings consisting of all names match the regular expression provided in regexp.
Definition: dss_classic.hpp:7470
VectorT Extract(const char *FileName)
Extracts the contents of the file "FileName" from the current (open) ZIP file.
Definition: dss_classic.hpp:7548
void Redirect(const string &FileInZip)
Runs a "Redirect" command inside the current (open) ZIP file.
Definition: dss_classic.hpp:7536
void Open(const string &FileName)
Opens and prepares a ZIP file to be used by the DSS text parser.
Definition: dss_classic.hpp:7500
void Close()
Closes the current open ZIP file.
Definition: dss_classic.hpp:7510
void Open(const char *FileName)
Opens and prepares a ZIP file to be used by the DSS text parser.
Definition: dss_classic.hpp:7487
void Redirect(const char *FileInZip)
Runs a "Redirect" command inside the current (open) ZIP file.
Definition: dss_classic.hpp:7523
bool Contains(const string &Name)
Check if the given path name is present in the current ZIP file.
Definition: dss_classic.hpp:7582
bool Contains(const char *Name)
Check if the given path name is present in the current ZIP file.
Definition: dss_classic.hpp:7572
Definition: dss_common.hpp:66
Definition: dss_common.hpp:42